Package io.delta.kernel.internal
Class DeltaErrors
Object
io.delta.kernel.internal.DeltaErrors
Contains methods to create user-facing Delta exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KernelExceptionstatic KernelExceptionconcurrentTransaction(String appId, long txnVersion, long lastUpdated) static KernelExceptiondataSchemaMismatch(String tablePath, StructType tableSchema, StructType dataSchema) static KernelExceptionduplicateColumnsInSchema(StructType schema, List<String> duplicateColumns) static KernelExceptioninvalidColumnName(String columnName, String unsupportedChars) static KernelExceptionstatic KernelExceptionpartitionColumnMissingInData(String tablePath, String partitionColumn) static KernelExceptionprotocolChangedException(long attemptVersion) static KernelExceptionrequiresSchemaForNewTable(String tablePath) static KernelExceptiontableAlreadyExists(String tablePath, String message) static KernelExceptiontimestampAfterLatestCommit(String tablePath, long providedTimestamp, long latestCommitTimestamp, long latestCommitVersion) static KernelExceptiontimestampBeforeFirstAvailableCommit(String tablePath, long providedTimestamp, long earliestCommitTimestamp, long earliestCommitVersion) static KernelExceptionunsupportedDataType(DataType dataType) static KernelExceptionunsupportedPartitionDataType(String colName, DataType dataType) static KernelExceptionunsupportedReaderFeature(String tablePath, String readerFeature) static KernelExceptionunsupportedReaderProtocol(String tablePath, int tableReaderVersion) static KernelExceptionunsupportedWriterFeature(String tablePath, String writerFeature) static KernelExceptionunsupportedWriterProtocol(String tablePath, int tableWriterVersion) static KernelExceptionversionAfterLatestCommit(String tablePath, long versionToLoad, long latestVersion) static KernelExceptionversionBeforeFirstAvailableCommit(String tablePath, long versionToLoad, long earliestVersion)
-
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
-
unsupportedReaderFeature
-
unsupportedWriterProtocol
-
unsupportedWriterFeature
-
columnInvariantsNotSupported
-
unsupportedDataType
-
unsupportedPartitionDataType
-
duplicateColumnsInSchema
public static KernelException duplicateColumnsInSchema(StructType schema, List<String> duplicateColumns) -
invalidColumnName
-
requiresSchemaForNewTable
-
tableAlreadyExists
-
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
-
protocolChangedException
-