Class TableFeatures

Object
io.delta.kernel.internal.TableFeatures

public class TableFeatures extends Object
Contains utility methods related to the Delta table feature support in protocol.
  • Constructor Details

    • TableFeatures

      public TableFeatures()
  • Method Details

    • validateReadSupportedTable

      public static void validateReadSupportedTable(Protocol protocol, Metadata metadata, String tablePath)
    • 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 protocol
      metadata - Table metadata
      tableSchema - Table schema