-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Kernel] [CatalogManaged] Add the catalog managed preview table feature (read) support #4686
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
[Kernel] [CatalogManaged] Add the catalog managed preview table feature (read) support #4686
Conversation
public static boolean isRowTrackingSupported(Protocol protocol) { | ||
return protocol.getImplicitlyAndExplicitlySupportedFeatures().contains(ROW_TRACKING_W_FEATURE); | ||
return protocol.supportsFeature(ROW_TRACKING_W_FEATURE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.supportsFeature
calls .getImplicitlyAndExplicitlySupportedFeatures().contains
65f7212
to
a9b0bcb
Compare
LGTM pending nits. |
kernel/kernel-api/src/main/java/io/delta/kernel/internal/tablefeatures/TableFeatures.java
Outdated
Show resolved
Hide resolved
...s/src/test/scala/io/delta/kernel/defaults/catalogManaged/CatalogManagedEnablementSuite.scala
Outdated
Show resolved
Hide resolved
// `delta.feature.catalogOwned-preview` correctly enables the catalogManaged table feature. | ||
// When writer support is added, we will extend this test to check that the right properties | ||
// and table features (e.g. ICT) were enabled. | ||
test("setting delta.feature.catalogOwned-preview enables the catalogManaged table feature") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the only test, add it to DeltaTableFeaturesSuite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I anticipate we will have more tests:
🥞 Stacked PR
Use this link to review incremental changes.
Which Delta project/connector is this regarding?
Description
Creates the
CATALOG_MANAGED_R_W_FEATURE_PREVIEW
. Only read support.Note -- only merge when full read support is complete. But this can be reviewed now.
How was this patch tested?
Existing UTs.
Does this PR introduce any user-facing changes?
No.