Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Support dropping Change Data Feed table feature #3280

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tomvanbussel
Copy link
Collaborator

@tomvanbussel tomvanbussel commented Jun 17, 2024

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR adds support for dropping the changeDataFeed table feature. It automatically removes delta.enableChangeDataFeed property from the table.

How was this patch tested?

Added a test to DeltaCDCSQLSuite.

Does this PR introduce any user-facing changes?

Yes, users can now run ALTER TABLE ... DROP FEATURE changeDataFeed.

|""".stripMargin)
assertFeatureEnabled()

sql("ALTER TABLE table DROP FEATURE changeDataFeed")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe write something to the table that adds CDF in a commit, to verify that the removal doesn't complain about this?

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.

None yet

2 participants