Skip to content

Fix: Disable WAP support by default for Spark and Iceberg#5415

Merged
izeigerman merged 1 commit intomainfrom
fix-disable-wap-for-spark
Sep 19, 2025
Merged

Fix: Disable WAP support by default for Spark and Iceberg#5415
izeigerman merged 1 commit intomainfrom
fix-disable-wap-for-spark

Conversation

@izeigerman
Copy link
Collaborator

After deprecate Airflow integration and removing the corresponding test suite we lost our only avenue for testing Spark + Iceberg combination. As a result, the Iceberg-specifc WAP support fell behind and deteriorated as the recent wave of Spark + Iceberg issues suggests.

This update disables WAP by default with the option to enable it in future. This should buy us time to introduce back continuous testing for the Spark + Iceberg combo and address all issues.

@izeigerman izeigerman requested review from a team and Copilot September 19, 2025 16:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR disables Write-Audit-Publish (WAP) support by default for Spark and Iceberg combinations due to deteriorated functionality after removing Airflow integration tests. The change introduces a configurable wap_enabled flag that defaults to false, providing an option to re-enable WAP in the future once proper testing is restored.

  • Add wap_enabled configuration flag with default value of False to disable WAP by default
  • Update conditional logic to check WAP enablement before applying WAP-related operations
  • Modify tests to parameterize WAP behavior and ensure proper coverage for both enabled/disabled states

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sqlmesh/core/config/connection.py Add wap_enabled configuration field to SparkConnectionConfig
sqlmesh/core/engine_adapter/base.py Add wap_enabled property to base engine adapter
sqlmesh/core/engine_adapter/spark.py Update create table logic to conditionally apply WAP based on enablement
sqlmesh/core/snapshot/evaluator.py Add WAP enablement check to evaluation logic
tests/core/engine_adapter/test_spark.py Parameterize tests for WAP enabled/disabled scenarios

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +460 to +461
do_dummy_insert = False
if self.wap_enabled:
Copy link

Copilot AI Sep 19, 2025

Choose a reason for hiding this comment

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

The variable do_dummy_insert is declared but never used in this diff. This appears to be dead code that should be removed or the logic that uses this variable is missing from the implementation.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh boy

@izeigerman izeigerman merged commit d41c3e0 into main Sep 19, 2025
36 checks passed
@izeigerman izeigerman deleted the fix-disable-wap-for-spark branch September 19, 2025 22:06
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.

3 participants