Skip to content

fix: disable ANSI mode in benchmarks to avoid exceptions on invalid input#3750

Merged
andygrove merged 1 commit intoapache:mainfrom
parthchandra:benchmark-spark4
Mar 21, 2026
Merged

fix: disable ANSI mode in benchmarks to avoid exceptions on invalid input#3750
andygrove merged 1 commit intoapache:mainfrom
parthchandra:benchmark-spark4

Conversation

@parthchandra
Copy link
Contributor

In Spark 4, benchmarks default spark.sql.ansi.enabled to true, causing CAST on intentionally invalid benchmark data to throw instead of returning NULL. The benchmarks assume that invalid data will not cause an exception so we should always set it to false.

…nput

comet-test-apache-spark defaults spark.sql.ansi.enabled to true, causing
CAST on intentionally invalid benchmark data to throw instead of returning NULL.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@parthchandra parthchandra requested a review from andygrove March 20, 2026 23:06
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 @parthchandra.

@andygrove andygrove merged commit c5f1ec8 into apache:main Mar 21, 2026
6 checks passed
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.

2 participants