Skip to content

chore: remove legacy ENABLE_COMET_SCAN_ONLY and ENABLE_COMET_ANSI_MODE env vars from Spark diffs#4252

Draft
parthchandra wants to merge 2 commits intoapache:mainfrom
parthchandra:legacy_env_spark_4
Draft

chore: remove legacy ENABLE_COMET_SCAN_ONLY and ENABLE_COMET_ANSI_MODE env vars from Spark diffs#4252
parthchandra wants to merge 2 commits intoapache:mainfrom
parthchandra:legacy_env_spark_4

Conversation

@parthchandra
Copy link
Copy Markdown
Contributor

These env vars are no longer set when running Spark SQL tests. ENABLE_COMET_SCAN_ONLY is removed from all diffs (always enable exec+shuffle). ENABLE_COMET_ANSI_MODE is removed from 3.4 and 3.5 diffs (ANSI mode has dedicated tests in the Spark SQL suite).

Which issue does this PR close?

Closes #2724

Rationale for this change

Removes unused env variables and cleans up diff files.

What changes are included in this PR?

  • Removed ENABLE_COMET_SCAN_ONLY from all Spark diffs (3.4.3, 3.5.8, 4.0.2, 4.1.1) — this env var is no longer set when running Spark SQL tests, so the conditional logic is dead code. The "exec+shuffle enabled" path is now unconditional.
  • Removed ENABLE_COMET_ANSI_MODE from the 3.4.3 and 3.5.8 diffs — this only toggled spark.sql.ansi.enabled and doesn't enable any Comet features. ANSI mode already has dedicated tests in the Spark SQL suite.
  • Simplify ParquetFilterSuite guards from if (!isCometEnabled || isCometScanOnly) to if (!isCometEnabled).

How are these changes tested?

CI

parthchandra and others added 2 commits May 6, 2026 11:03
…E env vars from Spark diffs

These env vars are no longer set when running Spark SQL tests.
ENABLE_COMET_SCAN_ONLY is removed from all diffs (always enable exec+shuffle).
ENABLE_COMET_ANSI_MODE is removed from 3.4 and 3.5 diffs (ANSI mode has
dedicated tests in the Spark SQL suite).

Closes apache#2724

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Remove legacy env vars from Spark diffs

1 participant