Skip to content

Commit 5d1e5d7

Browse files
committed
if ProjectionExpression is not nil, Should set Select type
1 parent 0df8dc4 commit 5d1e5d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dax/internal/client/legacy.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ func translateLegacyUpdateItemInput(input *dynamodb.UpdateItemInput) (*dynamodb.
112112
}
113113
return output, nil
114114
}
115-
116115
func translateLegacyScanInput(input *dynamodb.ScanInput) (*dynamodb.ScanInput, error) {
116+
// if ProjectionExpression is not nil, Should set Select type.
117+
if input.ProjectionExpression != nil {
118+
input.Select = types.SelectSpecificAttributes
119+
}
117120
pf, err := hasAttributesToGet(input.AttributesToGet, input.ProjectionExpression)
118121
if err != nil {
119122
return input, err

0 commit comments

Comments
 (0)