-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](Nereids) fix lexer Backtracking or Ambiguity cause of key word duplicate #39590
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 37610 ms |
|
|
||
| BRACKETED_COMMENT | ||
| : '/*' {!isHint()}? ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) | ||
| : COMMENT_START ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) |
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.
| : COMMENT_START ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) | |
| : COMMENT_START ( BRACKETED_COMMENT | HINT_WITH_CHANNEL | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) |
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.
done
| ARROW: '->'; | ||
| HINT_START: '/*+'; | ||
| HINT_END: '*/'; | ||
| COMMENT_START: '/*'; |
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.
add to non-reserved key word
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.
done
|
|
||
| HINT_WITH_CHANNEL | ||
| : {isChannel2()}? HINT_START .*? HINT_END -> channel(2) | ||
| : HINT_START {isChannel2()}? .*? HINT_END -> channel(2) |
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.
| : HINT_START {isChannel2()}? .*? HINT_END -> channel(2) | |
| : HINT_START {isChannel2()}? ( BRACKETED_COMMENT | HINT_WITH_CHANNEL | . )*? HINT_END -> channel(2) |
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.
done
| : COMMENT_START ( BRACKETED_COMMENT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) | ||
| ; | ||
|
|
||
| HINT_WITH_CHANNEL |
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.
| HINT_WITH_CHANNEL | |
| HINT |
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.
done
d894a74 to
b23587f
Compare
|
run buildall |
1 similar comment
|
run buildall |
| | COLOCATE | ||
| | COLUMNS | ||
| | COMMENT | ||
| | COMMENT_START |
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.
add HINT_START HINT_END too
|
run buildall |
TPC-H: Total hot run time: 37419 ms |
TPC-DS: Total hot run time: 189113 ms |
ClickBench: Total hot run time: 31.45 s |
5984622 to
6a222f3
Compare
|
run buildall |
TPC-H: Total hot run time: 37920 ms |
TPC-DS: Total hot run time: 193830 ms |
ClickBench: Total hot run time: 30.75 s |
6a222f3 to
e37b3ab
Compare
|
run buildall |
TPC-H: Total hot run time: 38354 ms |
TPC-DS: Total hot run time: 195202 ms |
ClickBench: Total hot run time: 31.22 s |
|
run feut |
|
run buildall |
TPC-H: Total hot run time: 38335 ms |
| HINT_WITH_CHANNEL | ||
| : {isChannel2()}? HINT_START .*? HINT_END -> channel(2) | ||
| BRACKETED_COMMENT | ||
| : {isChannel()}? COMMENT_START ( BRACKETED_COMMENT | HINT | . )*? ('*/' | {markUnclosedComment();} EOF) -> channel(HIDDEN) |
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.
why add isChannel here?
1fb649c to
c62fe38
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…duplicate (apache#39590) nereids timeout cause of parser cost too long time intro by: apache#39113 ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
…duplicate (apache#39590) nereids timeout cause of parser cost too long time intro by: apache#39113 ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
…duplicate (apache#39590) (apache#39750) cherry-pick from master apache#39590 issue intro by apache#39416
nereids timeout cause of parser cost too long time
intro by: #39113
Proposed changes
Issue Number: close #xxx