Skip to content

Conversation

@OussamaSaoudi
Copy link
Collaborator

What changes are proposed in this pull request?

This PR enables writes to tables that have CDF enabled only if append only is also enabled.

Change Data Feed writes require cdc files to be written to the delta table for DML operations. However, delta-kernel-rs does not support writing cdc files. However, Change Data Feed appends do not require writing cdc files. Thus we enable CDF for tables where append only is enabled. Such tables are safe to write to because there will never be a DML operation that requires a cdc write.

How was this change tested?

Verify that table configuration fails on incorrect/invalid configurations.

@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 94.44444% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.92%. Comparing base (81a8b7d) to head (d110a99).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
kernel/src/table_configuration.rs 95.00% 6 Missing ⚠️
kernel/src/utils.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1449      +/-   ##
==========================================
+ Coverage   84.84%   84.92%   +0.07%     
==========================================
  Files         119      119              
  Lines       31031    31152     +121     
  Branches    31031    31152     +121     
==========================================
+ Hits        26329    26455     +126     
+ Misses       3425     3421       -4     
+ Partials     1277     1276       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

&["delta.enableChangeDataFeed", "delta.appendOnly"],
&[ChangeDataFeed, ColumnMapping, AppendOnly],
),
Err(Error::unsupported(r#"Unknown TableFeatures: "columnMapping". Supported TableFeatures: "changeDataFeed", "appendOnly", "deletionVectors", "domainMetadata", "inCommitTimestamp", "invariants", "rowTracking", "timestampNtz", "variantType", "variantType-preview", "variantShredding-preview""#)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is a confusing error message. Can we either update it to be more clear about what's wrong, or if that's a bigger change, file a follow-up to clean it up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good call 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed it to: "Found unsupported TableFeatures"

Copy link
Member

@zachschuermann zachschuermann left a comment

Choose a reason for hiding this comment

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

Looks good, can we open a follow-up for considering expansion to non-append only? perhaps if we track the notion of a blind append transaction?

@OussamaSaoudi
Copy link
Collaborator Author

Followup here: #1453

@OussamaSaoudi OussamaSaoudi merged commit 6468b2f into delta-io:main Nov 4, 2025
22 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.

3 participants