-
Notifications
You must be signed in to change notification settings - Fork 548
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
Update LexerUtils.scala #1727
Merged
Merged
Update LexerUtils.scala #1727
Conversation
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
hellozepp
requested changes
Mar 28, 2022
external/mlsql-autosuggest/src/main/java/tech/mlsql/autosuggest/statement/LexerUtils.scala
Outdated
Show resolved
Hide resolved
external/mlsql-autosuggest/src/main/java/tech/mlsql/autosuggest/statement/LexerUtils.scala
Outdated
Show resolved
Hide resolved
external/mlsql-autosuggest/src/main/java/tech/mlsql/autosuggest/statement/LexerUtils.scala
Outdated
Show resolved
Hide resolved
@kaliGo-Li 请为上述的修改添加详实的单测,确保单测可以覆盖修改内容 |
Closed
Closed
kaliGo-Li
force-pushed
the
CS#1721
branch
3 times, most recently
from
March 28, 2022 19:31
8dfde58
to
f28df64
Compare
hellozepp
reviewed
Mar 29, 2022
external/mlsql-autosuggest/src/test/java/com/intigua/antlr4/autosuggest/LexerUtilsTest.scala
Outdated
Show resolved
Hide resolved
kaliGo-Li
force-pushed
the
CS#1721
branch
2 times, most recently
from
March 30, 2022 06:46
dff2d47
to
9980822
Compare
hellozepp
reviewed
Mar 30, 2022
external/mlsql-autosuggest/src/main/java/tech/mlsql/autosuggest/statement/LexerUtils.scala
Outdated
Show resolved
Hide resolved
kaliGo-Li
force-pushed
the
CS#1721
branch
2 times, most recently
from
March 30, 2022 15:57
16c47ab
to
74550e5
Compare
Optimized the logic of LexerUtils.scala for blank line judgment. When the last word on the previous line of the cursor is ";", the complex judgment logic that follows will no longer be executed. Update LexerUtilsTest Added unit tests for corresponding optimizations。 And modified an error in the loginfo of the AutoSuggestContext.scala file
hellozepp
approved these changes
Apr 21, 2022
chncaesar
approved these changes
Apr 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes were proposed in this pull request?
Optimized the logic of LexerUtils.scala for blank line judgment.
When the last word on the previous line of the cursor is ";", the complex judgment logic that follows will no longer be executed.
How was this patch tested?
There are two states: no code below the cursor and code below the cursor.
If the last word of the line above the cursor is ";", then the semantics of the statement is considered to end, and TokenPos(-1, TokenPosType.NEXT, -1) is returned.
Are there and DOC need to update?
Spark Core Compatibility