-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-50313][SQL][TESTS] Enable ANSI in SQL *SQLQueryTestSuite by default #48842
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
Conversation
| -- Type Coerced Union | ||
| SELECT udf(c1) as c1, udf(c2) as c2 | ||
| FROM (SELECT udf(c1) as c1, udf(c2) as c2 FROM t1 | ||
| FROM (SELECT udf(c1) as c1, udf(c2) as c2 FROM t1 WHERE c2 = 'a' |
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.
stabilize error
| values (0, 1) tab(x, y) | ||
| |> union table t; | ||
| |> union table t | ||
| |> where x = 0; |
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.
stabilize error
|
|
||
| -- test decimal operations | ||
| select id, a+b, a-b, a*b, a/b from decimals_test order by id; | ||
| select /*+ COALESCE(1) */ id, a+b, a-b, a*b, a/b from decimals_test order by id; |
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.
stabilize error
|
cc @dongjoon-hyun as the initiator of SPARK-44444, also cc @cloud-fan, thank you |
dongjoon-hyun
left a comment
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 making this efforts, @yaooqinn . It looks reasonable to me.
Although it's too verbose due to the switching the directory locations, I believe it's okay because we need to regenerate the SQL result always when we are going to backport from branch-4.0 to branch-3.5.
MaxGekk
left a comment
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.
cc @mihailom-db who works on https://issues.apache.org/jira/browse/SPARK-49577 and @srielau
|
Merged to master, thank you @dongjoon-hyun |
What changes were proposed in this pull request?
This PR enables ANSI in SQL *SQLQueryTestSuite by default for regular tests and switches the original ansi/ ones to nonansi, following SPARK-44444, which turn on ansi for prod,
Why are the changes needed?
test improvements
Does this PR introduce any user-facing change?
no
How was this patch tested?
new golden files
Was this patch authored or co-authored using generative AI tooling?
no