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

Fix oracle select union sql parse #29001

Merged
merged 3 commits into from
Nov 11, 2023
Merged

Fix oracle select union sql parse #29001

merged 3 commits into from
Nov 11, 2023

Conversation

zihaoAK47
Copy link
Member

Fixes #ISSUSE_ID.

Changes proposed in this pull request:

  • The Oracle select SQL statement union was not parsed
  • Fix oracle select union sql parse
  • Add test sql

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.

} else {
combineType = CombineType.MINUS;
}
result.setCombine(new CombineSegment(ctx.getStart().getStartIndex(), ctx.getStop().getStopIndex(), left,
Copy link
Member

Choose a reason for hiding this comment

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

Why call setCombine in foreach? I think combine should be a multi-level nested structure.

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.

LGTM, merged.

@strongduanmu strongduanmu merged commit 1401f1e into apache:master Nov 11, 2023
133 checks passed
@strongduanmu
Copy link
Member

Hi @zihaoAK47, thank you for your contribution. Can you add some more test case for more than one union statement?

@zihaoAK47
Copy link
Member Author

Hi @zihaoAK47, thank you for your contribution. Can you add some more test case for more than one union statement?

Ok, I will add more SQL tests for this parsing

@zihaoAK47 zihaoAK47 deleted the dev branch November 12, 2023 04:52
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.

2 participants