-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: Fix AS OF failures in TestRandomSyntaxSelect
One of the test cases failing within the TestRandomSyntaxSelect is the usage of 'AS OF' contained within the select clause, for example - SELECT 10 AS OF FROM <table_name>. The grammar uses a single token lookahead to determine that AS OF should pick the AS OF SYSTEM TIME rule. However, this isn't accurate. This PR fixes this bug by using two token lookahead instead of one to pick the right target rule when the keywords AS OF occur adjacently within the SELECT clause. Informs #87361 Epic: None Release note: none
- Loading branch information
1 parent
37e61e9
commit da6a7c4
Showing
5 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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