You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Kernel] Handle the preview and graduated table features when updating protocol through metadata (#4539)
## Description
Example preview and graduated features are:
* (typeWidening-preview -> typeWidening)
* (variantType-preview -> variant)
Currently we enable both the preview and non-preview feature names if
the feature enable criteria is true.
For example if the delta.enableTypeWidening is set to true, the table
will have both typeWidening-preview and typeWidening
Expected behavior:
* if the table has no typeWidening or typeWidening-preview
* enable only the typeWidening feature
* if the table has typeWidening-preview
* keep it as is and don't add typeWidening
* If the table has typeWidening feature
* keep it as is
Resolves#4532
## How was this patch tested?
Unit and integration tests. Integration tests only for typeWiderning as
Kernel doesn't yet support writes with variant.
Copy file name to clipboardExpand all lines: kernel/kernel-api/src/main/java/io/delta/kernel/internal/icebergcompat/IcebergWriterCompatV1MetadataValidatorAndUpdater.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ public static Optional<Metadata> validateAndUpdateIcebergWriterCompatV1Metadata(
171
171
CLUSTERING_W_FEATURE,
172
172
TIMESTAMP_NTZ_RW_FEATURE,
173
173
TYPE_WIDENING_RW_FEATURE,
174
-
TYPE_WIDENING_PREVIEW_TABLE_FEATURE)
174
+
TYPE_WIDENING_RW_PREVIEW_FEATURE)
175
175
.collect(toSet());
176
176
177
177
/** Checks that all features supported in the protocol are in {@link #ALLOWED_TABLE_FEATURES} */
Copy file name to clipboardExpand all lines: kernel/kernel-api/src/test/scala/io/delta/kernel/internal/icebergcompat/IcebergCompatV2MetadataValidatorAndUpdaterSuite.scala
0 commit comments