Skip to content

RemovableFeature Table Features

RemovableFeature is an extension of the TableFeature abstraction for table features that can be removed.

Contract (Subset)

actionUsesFeature

actionUsesFeature(
  action: Action): Boolean

See:

Used when:

Validate Drop Invariants

validateDropInvariants(
  table: DeltaTableV2,
  snapshot: Snapshot): Boolean

See:

Used when:

preDowngradeCommand

preDowngradeCommand(
  table: DeltaTableV2): PreDowngradeTableFeatureCommand

Create a PreDowngradeTableFeatureCommand with the given DeltaTableV2

See:

Used when:

Implementations

Sealed Trait

RemovableFeature is a Scala sealed trait which means that all of the implementations are in the same compilation unit (a single file).

Learn more in the Scala Language Specification.

historyContainsFeature

historyContainsFeature(
  spark: SparkSession,
  table: DeltaTableV2,
  downgradeTxnReadSnapshot: Snapshot): Boolean

historyContainsFeature...FIXME


historyContainsFeature is used when:

containsFeatureTraces

containsFeatureTraces(
  ds: Dataset[SingleAction]): Boolean

containsFeatureTraces checks out whether the given dataset of actions has got any Action that uses this feature.


containsFeatureTraces is used when:

requiresHistoryProtection

requiresHistoryProtection: Boolean

requiresHistoryProtection is enabled (true) when this table feature is a ReaderWriterFeatureType.


requiresHistoryProtection is used when: