Skip to content

[SPARK-51906][SQL][FOLLOW-UP] Enforce ANSI mode in previous tests #50851

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed

Conversation

szehon-ho
Copy link
Contributor

What changes were proposed in this pull request?

Limit the tests added in #50701 and #50593 only for ANSI_ENABLED mode.

Why are the changes needed?

These tests fail in non-ANSI mode. The reason is that https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/V2ExpressionUtils.scala only converts majority of catalyst => V2 expressions in ANSI mode. So , we do not get any V2Expression in non-ANSI case.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing unit test run with SPARK_ANSI_SQL_MODE=false

Was this patch authored or co-authored using generative AI tooling?

No

@HyukjinKwon
Copy link
Member

Merged to master.

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

Successfully merging this pull request may close these issues.

2 participants