Open mccauleyp opened 1 week ago
Adding ScanIndexForward
as an argument would be relatively simple. My concern here is that the dynamodb.read_items
API is not specific to Query. It abstracts all of GetItem, Query and Scan operations. If we are to support every individual arguments, the API would quickly become overloaded. A dynamodb_kwargs
argument would help but then it would require a complex logic to filter the right arguments for each underlying operation
Is your idea related to a problem? Please describe. Thanks for the great resource! It'd be great if the
dynamodb.read_items
method could be enhanced slightly to support changing theScanIndexForward
option on the DynamoDB query call.https://aws-sdk-pandas.readthedocs.io/en/3.7.2/stubs/awswrangler.dynamodb.read_items.html https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/query.html
Describe the solution you'd like I'd suggest exposing a
scan_index_forward
boolean kwarg on the method and explicitly propagating that down into theboto3
call, but potentially you could exposeboto3_additional_kwargs
similar to the existingpyarrow_additional_kwargs
to allow for arbitrary additional kwargs.