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

[CALCITE-6014] Create a SqlOperatorFixture that parses, unparses, and… #3433

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

mihaibudiu
Copy link
Contributor

… then parses again before executing

The code contains disabled tests for 5 bugs; these bugs have been all reported, and 3 already have PRs fixing them.
These disabled tests should be removed once the fixes are merged.

The change to SqlOperatorFixtureImpl also fixes a small and obvious bug.

@mihaibudiu
Copy link
Contributor Author

It would be great if someone could review this PR. It essentially adds a few hundred tests for the parser/unparser by reusing all the SqlOperatorTest tests. It caught at least 8 bugs already, most of which I have fixed. Going forward, it may make it much easier to write unparser tests.

@rubenada
Copy link
Contributor

Thanks @mihaibudiu for moving this forward, I think this is a good idea to unveil bugs.
I think the PR is in a pretty good shape, I have just left some minor comments.

… then parses again before executing

Signed-off-by: Mihai Budiu <[email protected]>
@mihaibudiu
Copy link
Contributor Author

I hope I have addressed the comments. I have optimistically squashed the commits to make this ready to merge.

@sonarcloud
Copy link

sonarcloud bot commented Oct 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rubenada rubenada added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Oct 14, 2023
@rubenada rubenada merged commit 5151168 into apache:main Oct 16, 2023
32 checks passed
@mihaibudiu mihaibudiu deleted the issue6014 branch October 16, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM-will-merge-soon Overall PR looks OK. Only minor things left.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants