Skip to content

RowTracking

checkStatsCollectedIfRowTrackingSupported

checkStatsCollectedIfRowTrackingSupported(
  protocol: Protocol,
  convertToDeltaShouldCollectStats: Boolean,
  statsCollectionEnabled: Boolean): Unit
Procedure

checkStatsCollectedIfRowTrackingSupported is a procedure (returns Unit) so what happens inside stays inside (paraphrasing the former advertising slogan of Las Vegas, Nevada).

checkStatsCollectedIfRowTrackingSupported...FIXME


checkStatsCollectedIfRowTrackingSupported is used when:

isSupported

isSupported(
  protocol: Protocol): Boolean

isSupported says whether the given protocol supports the Row Tracking table feature.

Internally, isSupported checks if RowTrackingFeature is supported by the given Protocol.


isSupported is used when:

isEnabled

isEnabled(
  protocol: Protocol,
  metadata: Metadata): Boolean

isEnabled is enabled (true) when the following are all met:

  1. delta.enableRowTracking table property is enabled (in the given table metadata)
  2. Row Tracking feature is supported

isEnabled throws an IllegalStateException when the delta.enableRowTracking table property is enabled but the feature is not supported by the given Protocol:

Table property 'delta.enableRowTracking' is set on the table
but this table version doesn't support table feature 'delta.feature.rowTracking'.

isEnabled is used when:

addPreservedRowTrackingTagIfNotSet

addPreservedRowTrackingTagIfNotSet(
  snapshot: SnapshotDescriptor,
  tagsMap: Map[String, String] = Map.empty): Map[String, String]

addPreservedRowTrackingTagIfNotSet...FIXME


addPreservedRowTrackingTagIfNotSet is used when:

createMetadataStructFields

createMetadataStructFields(
  protocol: Protocol,
  metadata: Metadata,
  nullable: Boolean): Iterable[StructField]

createMetadataStructFields...FIXME


createMetadataStructFields is used when:

preserveRowTrackingColumns

preserveRowTrackingColumns(
  dfWithoutRowTrackingColumns: DataFrame,
  snapshot: SnapshotDescriptor): DataFrame

preserveRowTrackingColumns...FIXME


preserveRowTrackingColumns is used when: