File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,9 @@ def _client_operation_logic(
633633 if self ._expect_standard_dictionaries :
634634 dbesdk_response = output_item_to_dict_transform_method (dbesdk_response )
635635
636+ # Clean up the expression builder for the next operation
637+ self ._resource_shape_to_client_shape_converter .expression_builder .reset ()
638+
636639 return dbesdk_response
637640
638641 @property
Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ def _paginate_request(
187187 dbesdk_response = output_item_to_dict_transform_method (dbesdk_response )
188188
189189 yield dbesdk_response
190+
191+ # Clean up the expression builder for the next operation
192+ self ._resource_shape_to_client_shape_converter .expression_builder .reset ()
190193
191194 @property
192195 def _boto_client_attr_name (self ) -> str :
Original file line number Diff line number Diff line change @@ -297,6 +297,9 @@ def _resource_operation_logic(
297297 # (e.g. `ConsumedCapacity`)
298298 dbesdk_response = self ._copy_sdk_response_to_dbesdk_response (sdk_output , dbesdk_response )
299299
300+ # Clean up the expression builder for the next operation
301+ self ._resource_shape_to_client_shape_converter .expression_builder .reset ()
302+
300303 return dbesdk_response
301304
302305 @property
Original file line number Diff line number Diff line change @@ -364,6 +364,9 @@ def _table_operation_logic(
364364 # Copy any missing fields from the SDK output to the response (e.g. `ConsumedCapacity`)
365365 dbesdk_response = self ._copy_sdk_response_to_dbesdk_response (sdk_output , dbesdk_response )
366366
367+ # Clean up the expression builder for the next operation
368+ self ._resource_shape_to_client_shape_converter .expression_builder .reset ()
369+
367370 return dbesdk_response
368371
369372 @property
You can’t perform that action at this time.
0 commit comments