Class DeltaErrors

Object
io.delta.kernel.internal.DeltaErrors

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

    • missingCheckpoint

      public static KernelException missingCheckpoint(String tablePath, long checkpointVersion)
    • 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 KernelException noCommitFilesFoundForVersionRange(String tablePath, long startVersion, long endVersion)
    • startVersionNotFound

      public static KernelException startVersionNotFound(String tablePath, long startVersionRequested, Optional<Long> earliestAvailableVersion)
    • endVersionNotFound

      public static KernelException endVersionNotFound(String tablePath, long endVersionRequested, long latestAvailableVersion)
    • invalidVersionRange

      public static KernelException invalidVersionRange(long startVersion, long endVersion)
    • unsupportedReaderProtocol

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

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

      public static KernelException unsupportedTableFeature(String feature)
    • unsupportedReaderFeatures

      public static KernelException unsupportedReaderFeatures(String tablePath, Set<String> readerFeatures)
    • unsupportedWriterFeatures

      public static KernelException unsupportedWriterFeatures(String tablePath, Set<String> writerFeatures)
    • columnInvariantsNotSupported

      public static KernelException columnInvariantsNotSupported()
    • unsupportedDataType

      public static KernelException unsupportedDataType(DataType dataType)
    • unsupportedStatsDataType

      public static KernelException unsupportedStatsDataType(DataType dataType)
    • unsupportedPartitionDataType

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

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

      public static KernelException conflictWithReservedInternalColumnName(String columnName)
    • invalidColumnName

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

      public static KernelException requiresSchemaForNewTable(String tablePath)
    • requireSchemaForReplaceTable

      public static KernelException requireSchemaForReplaceTable()
    • tableAlreadyExists

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

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

      public static KernelException statsTypeMismatch(String fieldName, DataType expected, DataType actual)
    • columnNotFoundInSchema

      public static KernelException columnNotFoundInSchema(Column column, StructType tableSchema)
    • overlappingTablePropertiesSetAndUnset

      public static KernelException overlappingTablePropertiesSetAndUnset(Set<String> violatingKeys)
    • 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)
    • icebergCompatUnsupportedTypePartitionColumn

      public static KernelException icebergCompatUnsupportedTypePartitionColumn(String compatVersion, DataType dataType)
    • icebergCompatIncompatibleTableFeatures

      public static KernelException icebergCompatIncompatibleTableFeatures(String compatVersion, Set<TableFeature> incompatibleFeatures)
    • icebergCompatRequiredFeatureMissing

      public static KernelException icebergCompatRequiredFeatureMissing(String compatVersion, String feature)
    • enablingIcebergWriterCompatV1OnExistingTable

      public static KernelException enablingIcebergWriterCompatV1OnExistingTable(String key)
    • icebergWriterCompatInvalidPhysicalName

      public static KernelException icebergWriterCompatInvalidPhysicalName(List<String> invalidFields)
    • disablingIcebergWriterCompatV1OnExistingTable

      public static KernelException disablingIcebergWriterCompatV1OnExistingTable(String key)
    • partitionColumnMissingInData

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

      public static KernelException enablingClusteringOnPartitionedTableNotAllowed(String tablePath, Set<String> partitionColNames, List<Column> clusteringCols)
    • concurrentTransaction

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

      public static KernelException metadataChangedException()
    • protocolChangedException

      public static KernelException protocolChangedException(long attemptVersion)
    • voidTypeEncountered

      public static KernelException voidTypeEncountered()
    • cannotModifyTableProperty

      public static KernelException cannotModifyTableProperty(String key)
    • unknownConfigurationException

      public static KernelException unknownConfigurationException(String confKey)
    • invalidConfigurationValueException

      public static KernelException invalidConfigurationValueException(String key, String value, String helpMessage)
    • domainMetadataUnsupported

      public static KernelException domainMetadataUnsupported()
    • concurrentDomainMetadataAction

      public static ConcurrentWriteException concurrentDomainMetadataAction(DomainMetadata domainMetadataAttempt, DomainMetadata winningDomainMetadata)
    • missingNumRecordsStatsForRowTracking

      public static KernelException missingNumRecordsStatsForRowTracking()
    • rowTrackingSupportedWithDomainMetadataUnsupported

      public static KernelException rowTrackingSupportedWithDomainMetadataUnsupported()
    • cannotToggleRowTrackingOnExistingTable

      public static KernelException cannotToggleRowTrackingOnExistingTable()
    • cannotModifyAppendOnlyTable

      public static KernelException cannotModifyAppendOnlyTable(String tablePath)
    • wrapEngineException

      public static <T> T wrapEngineException(Supplier<T> f, String msgString, Object... args)
    • wrapEngineExceptionThrowsIO

      public static <T> T wrapEngineExceptionThrowsIO(DeltaErrors.SupplierWithIOException<T> f, String msgString, Object... args) throws IOException
      Throws:
      IOException