dynamodb2 was evaluating ProjectionExpression on the wrong local result set
This commit is contained in:
parent
06492026c3
commit
64fb0207e2
2 changed files with 4 additions and 1 deletions
|
|
@ -493,7 +493,8 @@ class Table(BaseModel):
|
|||
|
||||
if projection_expression:
|
||||
expressions = [x.strip() for x in projection_expression.split(',')]
|
||||
for result in copy.deepcopy(possible_results):
|
||||
results = copy.deepcopy(results)
|
||||
for result in results:
|
||||
for attr in list(result.attrs):
|
||||
if attr not in expressions:
|
||||
result.attrs.pop(attr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue