Skip to content

Commit 083ee6d

Browse files
author
Lucas McDonald
committed
m
1 parent 980fde1 commit 083ee6d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/paginator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/resource.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/table.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)