Skip to content

test: enable native path in lower/upper_enabled sql fixtures - #5619

Merged
comphead merged 1 commit into
apache:mainfrom
cestercian:cursor/enable-native-lower-upper-541e
Sep 1, 2026
Merged

test: enable native path in lower/upper_enabled sql fixtures#5619
comphead merged 1 commit into
apache:mainfrom
cestercian:cursor/enable-native-lower-upper-541e

Conversation

@cestercian

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #5611.

Rationale for this change

lower_enabled.sql and upper_enabled.sql were meant to cover the native case-conversion path, but they set the no-op config spark.comet.expression.Lower/Upper.allowIncompatible. The native path is gated by spark.comet.caseConversion.enabled, so these fixtures currently exercise the same codegen dispatcher path as plain lower.sql / upper.sql.

What changes are included in this PR?

Are these changes tested?

Yes. After make core (Spark 4.1):

./mvnw test -Dsuites="org.apache.comet.CometSqlFileTestSuite lower_enabled" -Dtest=none
./mvnw test -Dsuites="org.apache.comet.CometSqlFileTestSuite upper_enabled" -Dtest=none

Both passed (1 test each, 0 failures).

Are there any user-facing changes?

No.

Point the _enabled fixtures at spark.comet.caseConversion.enabled so they
exercise the native case-conversion path instead of the no-op
allowIncompatible setting.

Fixes apache#5611

Co-authored-by: Cestercian <yashafaid@gmail.com>

@andygrove andygrove left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @cestercian

@comphead
comphead merged commit 252b7c8 into apache:main Sep 1, 2026
55 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.

lower_enabled.sql and upper_enabled.sql set a no-op config and never test the native path

4 participants