-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-48358][SQL] Support for REPEAT statement #47756
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
Closed
dusantism-db
wants to merge
12
commits into
apache:master
from
dusantism-db:sql-scripting-repeat-statement
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c67d6ca
add initial repeat statement
dusantism-db e6e27ec
scripting interpreter suite tests for repeat
dusantism-db 391ae32
scripting execution node suite tests for repeat
dusantism-db 8719f75
scripting parser suite tests for repeat
dusantism-db 934e952
add REPEAT and UNTIL keywords
dusantism-db 75ac771
remove unnecessary assert
dusantism-db a6ca945
refactor execution tests for while and repeat to use shared logic
dusantism-db 8e8e690
add leave and iterate support for repeat statement + tests
dusantism-db c21d782
finish tests for iterate and leave repeat statement
dusantism-db e99566a
fix formatting
dusantism-db 51080c2
add negative tests
dusantism-db 27ee356
address comments
dusantism-db 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
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.
Can we merge this with the above case for
WhileStatementContext? You have multiple options for this, using|operator orEithertype.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.
This wouldn't be trivial, as there is no common supertype between
RepeatStatementContextandWhileStatementContextwith thebeginLabel()method defined. Maybe we could have alabeledStatementgrammar rule, or something similar, to abstract some of this label logic from all statements with labels (ifElse, while, repeat..)