Package io.delta.kernel.internal
Class TableFeatures
Object
io.delta.kernel.internal.TableFeatures
Contains utility methods related to the Delta table feature support in protocol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateReadSupportedTable(Protocol protocol, Metadata metadata, String tablePath) static voidvalidateWriteSupportedTable(Protocol protocol, Metadata metadata, StructType tableSchema, String tablePath) Utility method to validate whether the given table is supported for writing from Kernel.
-
Constructor Details
-
TableFeatures
public TableFeatures()
-
-
Method Details
-
validateReadSupportedTable
-
validateWriteSupportedTable
public static void validateWriteSupportedTable(Protocol protocol, Metadata metadata, StructType tableSchema, String tablePath) Utility method to validate whether the given table is supported for writing from Kernel. Currently, the support is as follows:- protocol writer version 1.
- protocol writer version 2 only with appendOnly feature enabled.
- protocol writer version 7 with "appendOnly" feature enabled.
- Parameters:
protocol- Table protocolmetadata- Table metadatatableSchema- Table schema
-