-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Support parsing SQL Server SELECT TRIM #30249
Support parsing SQL Server SELECT TRIM #30249
Conversation
Hi @zzzk1, thank you for your contribution. Please solve ci exception on your local machine. |
@strongduanmu pls take a look |
parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
Show resolved
Hide resolved
@@ -6436,7 +6436,7 @@ | |||
</order-by> | |||
</select> | |||
|
|||
<select sql-case-id="select_with_trim_function"> | |||
<select sql-case-id="select_with_trim_function1"> |
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.
Please rename the sql-case-id with a meaningful name.
@@ -6517,7 +6517,84 @@ | |||
<simple-table name="employees" start-index="210" stop-index="218" literal-start-index="210" literal-stop-index="218" /> | |||
</from> | |||
</select> | |||
|
|||
|
|||
<select sql-case-id="select_with_trim_function2"> |
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.
Please rename the sql-case-id with a meaningful name.
</projections> | ||
</select> | ||
|
||
<select sql-case-id="select_with_trim_function3"> |
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.
Please rename the sql-case-id with a meaningful name.
</projections> | ||
</select> | ||
|
||
<select sql-case-id="select_with_trim_function4"> |
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.
Please rename the sql-case-id with a meaningful name.
</projections> | ||
</select> | ||
|
||
<select sql-case-id="select_with_trim_function5"> |
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.
Please rename the sql-case-id with a meaningful name.
Hi @zzzk1, thank you for your contribution. I leave some comment, please take a look. |
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.
Thank you for your contribution, merged.
Hi @zzzk1, can you take a look at #30270, I made some minor optimizations. |
sorry about that i will be prudently next |
Fixes #29162.
Changes proposed in this pull request:
Task
This issue is to support more SQL Server sql parsing, as follows:
Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e
.