An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
We introduce three new parameters to the addColumn method: generatedAlwaysAsIdentity, identityStart, and identityStep, which can be used to specify Identity Columns that are GENERATED BY DEFAULT and GENERATED ALWAYS.
Which Delta project/connector is this regarding?
Description
This PR is part of https://github.com/delta-io/delta/issues/1959
In this PR, we extend the
addColumn
interface in DeltaTableBuilder to allow for Identity Columns creation.Resolves https://github.com/delta-io/delta/issues/1072
How was this patch tested?
New tests.
Does this PR introduce any user-facing changes?
We introduce three new parameters to the
addColumn
method:generatedAlwaysAsIdentity
,identityStart
, andidentityStep
, which can be used to specify Identity Columns that are GENERATED BY DEFAULT and GENERATED ALWAYS.Interface
Example Usage