Skip to content

Conversation

cloud-fan
Copy link
Contributor

@cloud-fan cloud-fan commented Jul 1, 2025

What changes were proposed in this pull request?

This is a followup of #51247 to fix tests in the non ANSI build

Why are the changes needed?

fix test

Does this PR introduce any user-facing change?

no

How was this patch tested?

N/A

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

no

Closes #51330


class PushablePredicateSuite extends QueryTest with SharedSparkSession {

override def sparkConf: SparkConf = super.sparkConf.set(SQLConf.ANSI_ENABLED, true)
Copy link
Member

Choose a reason for hiding this comment

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

Hm, shouldn't we better explicitly enable it for affected test cases only? Either works fine to me. I opened one in #51330 so you can merge either this or that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it for convenience, as DS v2 expressions follow ANSI and we can only translate catalyst expressions (if they are ANSI relevent) into DS v2 expressions if ANSI is enabled. All DS v2 tests should enable ANSI mode.

@HyukjinKwon HyukjinKwon changed the title [SPARK-52551][SQL][FOLLOWUP] enable ANSI mode in PushablePredicateSuite [SPARK-52551][SQL][FOLLOW-UP] Enable ANSI mode in PushablePredicateSuite Jul 1, 2025
@HyukjinKwon
Copy link
Member

Merged to master.

asl3 pushed a commit to asl3/spark that referenced this pull request Jul 14, 2025
### What changes were proposed in this pull request?

This is a followup of apache#51247 to fix tests in the non ANSI build

### Why are the changes needed?

fix test

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

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

no

Closes apache#51330

Closes apache#51329 from cloud-fan/follow.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
haoyangeng-db pushed a commit to haoyangeng-db/apache-spark that referenced this pull request Jul 22, 2025
### What changes were proposed in this pull request?

This is a followup of apache#51247 to fix tests in the non ANSI build

### Why are the changes needed?

fix test

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

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

no

Closes apache#51330

Closes apache#51329 from cloud-fan/follow.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
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.

3 participants