Repository navigation
fix(query): check legacy conditions against the key schema #507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LeeroyHannigan
wants to merge
57
commits into
main
Choose a base branch
from
fix/legacy-condition-parity
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,404
−1,030
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
29229c2
fix(expressions): validate requests in the service's order and with i…
LeeroyHannigan aef6e1b
fix(expressions): keep the legacy filter operand-type checks, clarify…
LeeroyHannigan 475465a
fix(expressions): refuse legacy filter operand types with the service…
LeeroyHannigan 90fdc32
fix(expressions): validate legacy conditions with the service's rules…
LeeroyHannigan 68dcd0a
fix(engine): order transaction ConsumedCapacity by table creation time
LeeroyHannigan 217b5f9
fix(storage-mongodb): keep milliseconds on the catalog creation time
LeeroyHannigan b7ba331
docs: state the transaction capacity tie rule per backend
LeeroyHannigan ac76c66
refactor(core): split the expression semantic pass by rule family
LeeroyHannigan 964f3c3
refactor(core): move the update-parser tests into their own file
LeeroyHannigan bf75dc7
style: remove two em dashes from comments this branch added
LeeroyHannigan af5f681
fix(transact): report four per-item checks where the service does
LeeroyHannigan d28de7a
fix(query): name the first undefined key condition reference
LeeroyHannigan 52aad21
fix(expressions): answer four checks as the service does
LeeroyHannigan 2c6d37b
docs: correct four comments, pin the sorted unused key list
LeeroyHannigan d45765d
fix(transact): apply the value nesting limits as the service does
LeeroyHannigan cbb04f0
fix(scan): report Segment and TotalSegments mismatches after the expr…
LeeroyHannigan 1454cc9
docs: state what the Scan comment, the helpers header and the nesting…
LeeroyHannigan 88d6a9b
fix(query): check legacy conditions against the key schema the way th…
LeeroyHannigan 5d00a4f
fix(query): word an empty legacy number as the service does
LeeroyHannigan 40bafd9
fix(cassandra): pass the bare index name in IndexNotFound so the Quer…
LeeroyHannigan 6f12515
Merge origin/main into fix/transact-validation-order
LeeroyHannigan 5182292
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 5646709
Merge origin/main into fix/transact-validation-order
LeeroyHannigan e251f94
Merge fix/transact-validation-order into fix/legacy-condition-parity
LeeroyHannigan 29e390e
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 8c710ef
fix(query): word an empty number inside NS, L or M as the service does
LeeroyHannigan cffbfda
fix(query): refuse empty legacy key values after the Select checks
LeeroyHannigan 6d16ef3
fix(query): check Select ALL_ATTRIBUTES on a GSI after the key checks
LeeroyHannigan ecb64ee
refactor(query): run the non-indexable refusal once, at request time
LeeroyHannigan 6475f31
test(query): cover B keys in the legacy key condition checks
LeeroyHannigan 218de5e
docs: record which key an empty value on both legacy keys names
LeeroyHannigan fefb2d5
refactor(query): tidy the legacy key condition comments and tests
LeeroyHannigan c9b0f35
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 2c98868
refactor(query): reuse the #620 number check for legacy conditions
LeeroyHannigan 7eaf648
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan b29b9c5
fix(expressions): read BETWEEN bound numbers through number_value
LeeroyHannigan 65588f8
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 378f40b
fix(expressions): pass the depth limit to the update section parse
LeeroyHannigan 9025f03
test(expressions): pin the depth limit for calls of any name
LeeroyHannigan 72b5324
fix(expressions): refuse a call by name past the depth limit
LeeroyHannigan 14f1548
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 6256717
test(query): name the missing table number test for what it sends
LeeroyHannigan 12d210d
fix(query): let a legacy number with a Unicode digit reach the table …
LeeroyHannigan 087f851
docs(expressions): name the one call checked past the depth limit
LeeroyHannigan f037e10
refactor(query): build the non-indexable refusal in one place
LeeroyHannigan 03d2d83
test(query): move the legacy key schema tests into their own file
LeeroyHannigan e1dbe8a
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan bd08699
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 14f6a63
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan bfbf7e3
fix(engine): allow the PartiQL-only helpers to be unused without partiql
LeeroyHannigan 9671326
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan 11e50bc
fix(query): pass a non-ASCII legacy number only for Unicode decimal d…
LeeroyHannigan 0856269
test(query): put U+FF11 inside NS, L and M in the legacy number rows
LeeroyHannigan 599e223
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan bac8de5
test: set creation_date_time in the TableKeyInfo literal of #544's ga…
LeeroyHannigan 2c73421
Merge origin/main into fix/legacy-condition-parity
LeeroyHannigan e1b6f79
test(query): refuse U+00E9 inside NS, L and M in the legacy number rows
LeeroyHannigan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nested call of a name the service does not define now stops at the depth limit before its name is checked.
foo(151 times, thena, then 151), then= :vas a ScanFilterExpression: the service answersInvalid FilterExpression: Invalid function name; function: foo(2 sends), as b29b9c5 does. This line answersInvalid FilterExpression: expression nesting depth exceededon SQLite, PostgreSQL, MongoDB and Cassandra. The same happens in UpdateItem and DeleteItemConditionExpressionat 151, 200 and 300 calls.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed in 72b5324. When a call would go past the limit, the parser now checks its name with the semantic pass's rule first, so this filter answers
Invalid FilterExpression: Invalid function name; function: fooagain. Asizecall still gets the depth error, as on main.I sent your shapes to the service today and got the same answers.
depth_tests.rshas them one call past the limit, along with the two 50,000-call nests, which now expect the name refusal. Three nests this check doesn't reach are in #1155, with their measurements.