Skip to content

IdentityColumn

allowExplicitInsert

allowExplicitInsert(
  field: StructField): Boolean

allowExplicitInsert...FIXME


allowExplicitInsert is used when:

copySchemaWithMergedHighWaterMarks

copySchemaWithMergedHighWaterMarks(
  deltaLog: DeltaLog,
  schemaToCopy: StructType,
  schemaWithHighWaterMarksToMerge: StructType): StructType

copySchemaWithMergedHighWaterMarks...FIXME


copySchemaWithMergedHighWaterMarks is used when:

Create Expression to Generate IDENTITY Values

createIdentityColumnGenerationExpr(
  field: StructField): Expression

createIdentityColumnGenerationExpr creates a GenerateIdentityValues for the IdentityInfo for the given StructField.


createIdentityColumnGenerationExpr is used when:

Create Column to Generate IDENTITY Values

createIdentityColumnGenerationExprAsColumn(
  field: StructField): Column

createIdentityColumnGenerationExprAsColumn creates a Column (Spark SQL) with a GenerateIdentityValues expression for the given StructField.


createIdentityColumnGenerationExprAsColumn is used when:

getIdentityColumns

getIdentityColumns(
  schema: StructType): Seq[StructField]

getIdentityColumns...FIXME


getIdentityColumns is used when:

getIdentityInfo

getIdentityInfo(
  field: StructField): IdentityInfo

getIdentityInfo...FIXME


getIdentityInfo is used when:

syncIdentity

syncIdentity(
  deltaLog: DeltaLog,
  field: StructField,
  df: DataFrame,
  allowLoweringHighWaterMarkForSyncIdentity: Boolean): StructField

syncIdentity...FIXME


syncIdentity is used when:

  • AlterTableChangeColumnDeltaCommand is executed

updateSchema

updateSchema(
  deltaLog: DeltaLog,
  schema: StructType,
  updatedIdentityHighWaterMarks: Seq[(String, Long)]): StructType

updateSchema...FIXME


updateSchema is used when:

updateToValidHighWaterMark

updateToValidHighWaterMark(
  field: StructField,
  candidateHighWaterMark: Long,
  allowLoweringHighWaterMarkForSyncIdentity: Boolean): (StructField, Seq[String])

updateToValidHighWaterMark...FIXME


updateToValidHighWaterMark is used when: