Skip to content
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 INSERT INTO sql #29195 #29916

Merged
merged 7 commits into from
Jan 30, 2024

Conversation

yydeng626
Copy link
Collaborator

@yydeng626 yydeng626 commented Jan 30, 2024

Fixes #29195.

Changes proposed in this pull request:

  • support sql
1. INSERT INTO #t VALUES (99)

2. INSERT INTO ##test
VALUES (1, 1)

3.SELECT * FROM ##test  // duplicate sql

4.SELECT TOP 100 id=CAST(_id as VARBINARY(1000))
FROM OPENROWSET('CosmosDB',
                'Your-account

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.

# Conflicts:
#	parser/sql/dialect/sqlserver/src/main/antlr4/imports/sqlserver/BaseRule.g4
#	test/it/parser/src/main/resources/case/dml/insert.xml
#	test/it/parser/src/main/resources/case/dml/select-special-function.xml
#	test/it/parser/src/main/resources/sql/supported/dml/insert.xml
#	test/it/parser/src/main/resources/sql/supported/dml/select-special-function.xml
# Conflicts:
#	test/it/parser/src/main/resources/case/dml/insert.xml
#	test/it/parser/src/main/resources/sql/supported/dml/insert.xml
Copy link
Member

@strongduanmu strongduanmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, merged. Please go ahead.

@strongduanmu strongduanmu merged commit 30a492d into apache:master Jan 30, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support parsing SQL Server INSERT INTO sql
2 participants