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

[SPARK-38321][SQL][TESTS] Fix BooleanSimplificationSuite under ANSI #35654

Closed

Conversation

anchovYu
Copy link
Contributor

What changes were proposed in this pull request?

This PR fixes BooleanSimplificationSuite under ANSI mode. Change the test case to be a long type to avoid casting difference in ANSI on/off.

Why are the changes needed?

To set up a new GA job to run tests with ANSI mode before 3.3.0 release.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Test locally with both ANSI on and off, both passed.

@github-actions github-actions bot added the SQL label Feb 24, 2022
('a > 1 || 'b > 3) && (('a > 1 || 'b > 3) && 'd > 0 && (('a > 1 || 'b > 3) && 'c > 1)),
('a > 1 || 'b > 3) && 'd > 0 && 'c > 1)
('a > 1 || 'b > 3) && (('a > 1 || 'b > 3) && 'd > 0L && (('a > 1 || 'b > 3) && 'c > 1)),
('a > 1 || 'b > 3) && 'd > 0L && 'c > 1)
Copy link
Member

Choose a reason for hiding this comment

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

Hm. how did this trigger casting? Seems like all IntegerType.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ANSI mode would cast the d(string) and 0 to long type. @gengliangwang for more context.

@HyukjinKwon HyukjinKwon changed the title [SPARK-38321][SQL][Tests] Fix BooleanSimplificationSuite under ANSI [SPARK-38321][SQL][TESTS] Fix BooleanSimplificationSuite under ANSI Feb 25, 2022
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@gengliangwang
Copy link
Member

Merging to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants