Package io.delta.kernel.internal
Class DeltaErrors
Object
io.delta.kernel.internal.DeltaErrors
Contains methods to create user-facing Delta exceptions.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic KernelExceptioncannotModifyAppendOnlyTable(String tablePath) static KernelExceptionstatic KernelExceptionstatic KernelExceptioncdfMixedAddRemoveNotSupported(String tablePath) static KernelExceptioncheckpointOnUnpublishedCommits(String tablePath, long version, long maxPublishedVersion) static KernelExceptionstatic KernelExceptioncolumnNotFoundInSchema(Column column, StructType tableSchema) static ConcurrentWriteExceptionconcurrentDomainMetadataAction(DomainMetadata domainMetadataAttempt, DomainMetadata winningDomainMetadata) static KernelExceptionconcurrentTransaction(String appId, long txnVersion, long lastUpdated) static KernelExceptionconflictWithReservedInternalColumnName(String columnName) static KernelExceptiondataSchemaMismatch(String tablePath, StructType tableSchema, StructType dataSchema) static KernelExceptionstatic KernelExceptionstatic KernelExceptionstatic KernelExceptionstatic KernelExceptionduplicateColumnsInSchema(StructType schema, List<String> duplicateColumns) static KernelExceptionenablingClusteringOnPartitionedTableNotAllowed(String tablePath, Set<String> partitionColNames, List<Column> clusteringCols) static KernelExceptionstatic KernelExceptionendVersionNotFound(String tablePath, long endVersionRequested, long latestAvailableVersion) static KernelExceptionicebergCompatIncompatibleTableFeatures(String compatVersion, Set<TableFeature> incompatibleFeatures) static KernelExceptionicebergCompatIncompatibleVersionEnabled(String compatVersion, String incompatibleIcebergCompatVersion) static KernelExceptionicebergCompatMissingNumRecordsStats(String compatVersion, DataFileStatus dataFileStatus) static KernelExceptionicebergCompatRequiredFeatureMissing(String compatVersion, String feature) static KernelExceptionicebergCompatRequiresLiteralDefaultValue(String compatVersion, DataType dataType, String value) static KernelExceptionicebergCompatUnsupportedTypeColumns(String compatVersion, List<DataType> dataTypes) static KernelExceptionicebergCompatUnsupportedTypePartitionColumn(String compatVersion, DataType dataType) static KernelExceptionicebergCompatUnsupportedTypeWidening(String compatVersion, TypeChange typeChange) static KernelExceptionicebergWriterCompatInvalidPhysicalName(List<String> invalidFields) static KernelExceptioninvalidColumnName(String columnName, String unsupportedChars) static KernelExceptioninvalidConfigurationValueException(String key, String value, String helpMessage) static KernelExceptioninvalidFieldMove(int columnId, Optional<SchemaIterable.ParentStructFieldInfo> currentParent, Optional<SchemaIterable.ParentStructFieldInfo> newParent) static KernelExceptioninvalidResolvedVersionRange(String tablePath, long startVersion, long endVersion) static KernelExceptioninvalidVersionRange(long startVersion, long endVersion) static KernelExceptionstatic KernelExceptionmetadataMissingRequiredCatalogTableProperty(String committerClassName, Map<String, String> missingOrViolatingProperties, Map<String, String> requiredCatalogTableProperties) static KernelExceptionmissingCheckpoint(String tablePath, long checkpointVersion) static KernelExceptionstatic KernelExceptionmissingRowTrackingColumnRequested(String columnName) static CommitRangeNotFoundExceptionnoCommitFilesFoundForVersionRange(String tablePath, long startVersion, Optional<Long> endVersionOpt) static KernelExceptionnonLiteralDefaultValue(String value) static RuntimeExceptionnonRetryableCommitException(int attempt, long commitAsVersion, CommitFailedException cause) static KernelExceptionoverlappingTablePropertiesSetAndUnset(Set<String> violatingKeys) static KernelExceptionpartitionColumnMissingInData(String tablePath, String partitionColumn) static KernelExceptionprotocolChangedException(long attemptVersion) static KernelExceptionstatic KernelExceptionrequiresSchemaForNewTable(String tablePath) static KernelExceptionresolvedEndVersionAfterMaxCatalogVersion(String tablePath, long resolvedEndVersion, long maxCatalogVersion) static KernelExceptionrowTrackingMetadataMissingInFile(String entry, String filePath) static KernelExceptionrowTrackingRequiredForRowIdHighWatermark(String tablePath, String rowIdHighWatermark) static KernelExceptionstartVersionNotFound(String tablePath, long startVersionRequested, Optional<Long> earliestAvailableVersion) static KernelExceptionstatsTypeMismatch(String fieldName, DataType expected, DataType actual) static KernelExceptiontableAlreadyExists(String tablePath, String message) static InvalidTableExceptiontableWithIctMissingCommitInfo(String dataPath, long version) static InvalidTableExceptiontableWithIctMissingIct(String dataPath, long version) static KernelExceptiontimestampAfterLatestCommit(String tablePath, long providedTimestamp, long latestCommitTimestamp, long latestCommitVersion) static KernelExceptiontimestampBeforeFirstAvailableCommit(String tablePath, long providedTimestamp, long earliestCommitTimestamp, long earliestCommitVersion) static KernelExceptionunknownConfigurationException(String confKey) static KernelExceptionunsupportedDataType(DataType dataType) static KernelExceptionunsupportedDataTypeForDefaultValue(String fieldName, String fieldType) static KernelExceptionunsupportedPartitionDataType(String colName, DataType dataType) unsupportedReaderFeatures(String tablePath, Set<String> readerFeatures) unsupportedReaderProtocol(String tablePath, int tableReaderVersion) static KernelExceptionunsupportedStatsDataType(DataType dataType) unsupportedTableFeature(String feature) unsupportedWriterFeatures(String tablePath, Set<String> writerFeatures) unsupportedWriterProtocol(String tablePath, int tableWriterVersion) static KernelExceptionversionBeforeFirstAvailableCommit(String tablePath, long versionToLoad, long earliestVersion) static KernelExceptionversionToLoadAfterLatestCommit(String tablePath, long versionToLoad, long latestVersion) static KernelExceptionstatic <T> TwrapEngineException(Supplier<T> f, String msgString, Object... args) static <T> TwrapEngineExceptionThrowsIO(DeltaErrors.SupplierWithIOException<T> f, String msgString, Object... args)
-
Method Details
-
missingCheckpoint
-
versionBeforeFirstAvailableCommit
public static KernelException versionBeforeFirstAvailableCommit(String tablePath, long versionToLoad, long earliestVersion) -
versionToLoadAfterLatestCommit
public static KernelException versionToLoadAfterLatestCommit(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) -
noCommitFilesFoundForVersionRange
public static CommitRangeNotFoundException noCommitFilesFoundForVersionRange(String tablePath, long startVersion, Optional<Long> endVersionOpt) -
startVersionNotFound
public static StartVersionNotFoundException startVersionNotFound(String tablePath, long startVersionRequested, Optional<Long> earliestAvailableVersion) -
endVersionNotFound
public static KernelException endVersionNotFound(String tablePath, long endVersionRequested, long latestAvailableVersion) -
invalidVersionRange
-
invalidResolvedVersionRange
public static KernelException invalidResolvedVersionRange(String tablePath, long startVersion, long endVersion) -
resolvedEndVersionAfterMaxCatalogVersion
public static KernelException resolvedEndVersionAfterMaxCatalogVersion(String tablePath, long resolvedEndVersion, long maxCatalogVersion) -
unsupportedReaderProtocol
public static UnsupportedProtocolVersionException unsupportedReaderProtocol(String tablePath, int tableReaderVersion) -
unsupportedWriterProtocol
public static UnsupportedProtocolVersionException unsupportedWriterProtocol(String tablePath, int tableWriterVersion) -
unsupportedTableFeature
-
unsupportedReaderFeatures
public static UnsupportedTableFeatureException unsupportedReaderFeatures(String tablePath, Set<String> readerFeatures) -
unsupportedWriterFeatures
public static UnsupportedTableFeatureException unsupportedWriterFeatures(String tablePath, Set<String> writerFeatures) -
columnInvariantsNotSupported
-
checkpointOnUnpublishedCommits
public static KernelException checkpointOnUnpublishedCommits(String tablePath, long version, long maxPublishedVersion) -
unsupportedDataType
-
unsupportedStatsDataType
-
unsupportedPartitionDataType
-
duplicateColumnsInSchema
public static KernelException duplicateColumnsInSchema(StructType schema, List<String> duplicateColumns) -
conflictWithReservedInternalColumnName
-
invalidColumnName
-
requiresSchemaForNewTable
-
requireSchemaForReplaceTable
-
tableAlreadyExists
-
dataSchemaMismatch
public static KernelException dataSchemaMismatch(String tablePath, StructType tableSchema, StructType dataSchema) -
statsTypeMismatch
public static KernelException statsTypeMismatch(String fieldName, DataType expected, DataType actual) -
columnNotFoundInSchema
-
overlappingTablePropertiesSetAndUnset
-
icebergCompatMissingNumRecordsStats
public static KernelException icebergCompatMissingNumRecordsStats(String compatVersion, DataFileStatus dataFileStatus) -
icebergCompatIncompatibleVersionEnabled
public static KernelException icebergCompatIncompatibleVersionEnabled(String compatVersion, String incompatibleIcebergCompatVersion) -
icebergCompatUnsupportedTypeColumns
public static KernelException icebergCompatUnsupportedTypeColumns(String compatVersion, List<DataType> dataTypes) -
icebergCompatUnsupportedTypeWidening
public static KernelException icebergCompatUnsupportedTypeWidening(String compatVersion, TypeChange typeChange) -
icebergCompatUnsupportedTypePartitionColumn
public static KernelException icebergCompatUnsupportedTypePartitionColumn(String compatVersion, DataType dataType) -
icebergCompatRequiresLiteralDefaultValue
public static KernelException icebergCompatRequiresLiteralDefaultValue(String compatVersion, DataType dataType, String value) -
icebergCompatIncompatibleTableFeatures
public static KernelException icebergCompatIncompatibleTableFeatures(String compatVersion, Set<TableFeature> incompatibleFeatures) -
icebergCompatRequiredFeatureMissing
public static KernelException icebergCompatRequiredFeatureMissing(String compatVersion, String feature) -
enablingIcebergCompatFeatureOnExistingTable
-
icebergWriterCompatInvalidPhysicalName
-
disablingIcebergCompatFeatureOnExistingTable
-
defaultValueRequiresTableFeature
-
defaultValueRequireIcebergV3
-
unsupportedDataTypeForDefaultValue
public static KernelException unsupportedDataTypeForDefaultValue(String fieldName, String fieldType) -
nonLiteralDefaultValue
-
partitionColumnMissingInData
public static KernelException partitionColumnMissingInData(String tablePath, String partitionColumn) -
enablingClusteringOnPartitionedTableNotAllowed
-
nonRetryableCommitException
public static RuntimeException nonRetryableCommitException(int attempt, long commitAsVersion, CommitFailedException cause) -
concurrentTransaction
public static KernelException concurrentTransaction(String appId, long txnVersion, long lastUpdated) -
metadataChangedException
-
protocolChangedException
-
voidTypeEncountered
-
cannotModifyTableProperty
-
unknownConfigurationException
-
invalidConfigurationValueException
public static KernelException invalidConfigurationValueException(String key, String value, String helpMessage) -
domainMetadataUnsupported
-
concurrentDomainMetadataAction
public static ConcurrentWriteException concurrentDomainMetadataAction(DomainMetadata domainMetadataAttempt, DomainMetadata winningDomainMetadata) -
missingNumRecordsStatsForRowTracking
-
rowTrackingSupportedWithDomainMetadataUnsupported
-
rowTrackingRequiredForRowIdHighWatermark
public static KernelException rowTrackingRequiredForRowIdHighWatermark(String tablePath, String rowIdHighWatermark) -
cannotToggleRowTrackingOnExistingTable
-
missingRowTrackingColumnRequested
-
cannotModifyAppendOnlyTable
-
cdfMixedAddRemoveNotSupported
-
rowTrackingMetadataMissingInFile
-
tableWithIctMissingCommitInfo
-
tableWithIctMissingIct
-
metadataMissingRequiredCatalogTableProperty
-
invalidFieldMove
public static KernelException invalidFieldMove(int columnId, Optional<SchemaIterable.ParentStructFieldInfo> currentParent, Optional<SchemaIterable.ParentStructFieldInfo> newParent) -
wrapEngineException
-
wrapEngineExceptionThrowsIO
public static <T> T wrapEngineExceptionThrowsIO(DeltaErrors.SupplierWithIOException<T> f, String msgString, Object... args) throws IOException - Throws:
IOException
-