Class DeltaErrors

Object
io.delta.kernel.internal.DeltaErrors

public final class DeltaErrors extends Object
Contains methods to create user-facing Delta exceptions.
  • Method Details

    • versionBeforeFirstAvailableCommit

      public static KernelException versionBeforeFirstAvailableCommit(String tablePath, long versionToLoad, long earliestVersion)
    • versionAfterLatestCommit

      public static KernelException versionAfterLatestCommit(String tablePath, long versionToLoad, long latestVersion)
    • timestampBeforeFirstAvailableCommit

      public static KernelException timestampBeforeFirstAvailableCommit(String tablePath, long providedTimestamp, long earliestCommitTimestamp, long earliestCommitVersion)
    • timestampAfterLatestCommit

      public static KernelException timestampAfterLatestCommit(String tablePath, long providedTimestamp, long latestCommitTimestamp, long latestCommitVersion)
    • unsupportedReaderProtocol

      public static KernelException unsupportedReaderProtocol(String tablePath, int tableReaderVersion)
    • unsupportedReaderFeature

      public static KernelException unsupportedReaderFeature(String tablePath, String readerFeature)
    • unsupportedWriterProtocol

      public static KernelException unsupportedWriterProtocol(String tablePath, int tableWriterVersion)
    • unsupportedWriterFeature

      public static KernelException unsupportedWriterFeature(String tablePath, String writerFeature)
    • columnInvariantsNotSupported

      public static KernelException columnInvariantsNotSupported()
    • unsupportedDataType

      public static KernelException unsupportedDataType(DataType dataType)
    • unsupportedPartitionDataType

      public static KernelException unsupportedPartitionDataType(String colName, DataType dataType)
    • duplicateColumnsInSchema

      public static KernelException duplicateColumnsInSchema(StructType schema, List<String> duplicateColumns)
    • invalidColumnName

      public static KernelException invalidColumnName(String columnName, String unsupportedChars)
    • requiresSchemaForNewTable

      public static KernelException requiresSchemaForNewTable(String tablePath)
    • tableAlreadyExists

      public static KernelException tableAlreadyExists(String tablePath, String message)
    • dataSchemaMismatch

      public static KernelException dataSchemaMismatch(String tablePath, StructType tableSchema, StructType dataSchema)
    • partitionColumnMissingInData

      public static KernelException partitionColumnMissingInData(String tablePath, String partitionColumn)
    • concurrentTransaction

      public static KernelException concurrentTransaction(String appId, long txnVersion, long lastUpdated)
    • metadataChangedException

      public static KernelException metadataChangedException()
    • protocolChangedException

      public static KernelException protocolChangedException(long attemptVersion)