Skip to content

Conversation

@manuzhang
Copy link
Member

@manuzhang manuzhang commented Dec 16, 2025

Which issue does this PR close?

Closes #2885.

Rationale for this change

Some cast tests are skipped for Spark 4.0 due to exception message mismatch after apache/spark#48054.

What changes are included in this PR?

Drop If necessary set \"spark.sql.ansi.enabled\" to \"false\" to bypass this error. from comet exception message like apache/spark#48054, and enable tests skipped for Spark 4.0.

How are these changes tested?

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.61%. Comparing base (f09f8af) to head (d27b6b3).
⚠️ Report is 784 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2919      +/-   ##
============================================
+ Coverage     56.12%   59.61%   +3.48%     
- Complexity      976     1370     +394     
============================================
  Files           119      167      +48     
  Lines         11743    15493    +3750     
  Branches       2251     2568     +317     
============================================
+ Hits           6591     9236    +2645     
- Misses         4012     4957     +945     
- Partials       1140     1300     +160     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderfender
Copy link
Contributor

coderfender commented Dec 17, 2025

Closes : #2885

@manuzhang manuzhang force-pushed the cast-test-spark4.0 branch 3 times, most recently from 9b55e22 to 04e1ffd Compare December 18, 2025 04:23
@coderfender
Copy link
Contributor

@manuzhang , LGTM nit : would be great to have a separate unit test to check error messages themselves .

@manuzhang
Copy link
Member Author

@coderfender which message do you suggest to expect specifically? Spark has added back "SQLSTATE" tag in 4.1 but I don't think we have to change at Comet side to match the behavior every time.

@coderfender
Copy link
Contributor

@manuzhang no I meant a simple unit test to asset that our logic works :)

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Thanks @manuzhang

@andygrove andygrove merged commit 614fe13 into apache:main Dec 22, 2025
112 checks passed
@coderfender
Copy link
Contributor

Thank you @manuzhang

Copy link
Contributor

@coderfender coderfender left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for spark 4x cast tests

4 participants