Skip to content

Commit

Permalink
IdentityColumnsTableFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklaskowski committed Jan 11, 2025
1 parent 7c89c3e commit 7ee8420
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/check-constraints/CheckConstraintsTableFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CheckConstraintsTableFeature

`CheckConstraintsTableFeature` is...FIXME
4 changes: 4 additions & 0 deletions docs/column-invariants/Invariants.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Invariants
---

# Invariants Utility

## <span id="INVARIANTS_FIELD"><span id="delta.invariants"> delta.invariants
Expand Down
3 changes: 3 additions & 0 deletions docs/column-invariants/InvariantsTableFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# InvariantsTableFeature

`InvariantsTableFeature` is...FIXME
3 changes: 3 additions & 0 deletions docs/column-mapping/ColumnMappingTableFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ColumnMappingTableFeature

`ColumnMappingTableFeature` is...FIXME
4 changes: 4 additions & 0 deletions docs/generated-columns/GeneratedColumn.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: GeneratedColumn
---

# GeneratedColumn Utility

`GeneratedColumn` is a utility for [Generated Columns](index.md).
Expand Down
3 changes: 3 additions & 0 deletions docs/generated-columns/GeneratedColumnsTableFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# GeneratedColumnsTableFeature

`GeneratedColumnsTableFeature` is...FIXME
25 changes: 25 additions & 0 deletions docs/identity-columns/IdentityColumnsTableFeature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# IdentityColumnsTableFeature

`IdentityColumnsTableFeature` is a [LegacyWriterFeature](../table-features/LegacyWriterFeature.md) with the following properties:

Feature Property | Value
-|-
[name](../table-features/LegacyWriterFeature.md#name) | `identityColumns`
[minWriterVersion](../table-features/LegacyWriterFeature.md#minWriterVersion) | 6

`IdentityColumnsTableFeature` [can be enabled via table metadata](../table-features/FeatureAutomaticallyEnabledByMetadata.md).

## metadataRequiresFeatureToBeEnabled { #metadataRequiresFeatureToBeEnabled }

??? note "FeatureAutomaticallyEnabledByMetadata"

```scala
metadataRequiresFeatureToBeEnabled(
protocol: Protocol,
metadata: Metadata,
spark: SparkSession): Boolean
```

`metadataRequiresFeatureToBeEnabled` is part of the [FeatureAutomaticallyEnabledByMetadata](../table-features/FeatureAutomaticallyEnabledByMetadata.md#metadataRequiresFeatureToBeEnabled) abstraction.

`metadataRequiresFeatureToBeEnabled` is enabled (`true`) when the [table schema](../Metadata.md#schema) (from the given [Metadata](../Metadata.md)) [has an identity column](../ColumnWithDefaultExprUtils.md#hasIdentityColumn).
9 changes: 5 additions & 4 deletions docs/table-features/FeatureAutomaticallyEnabledByMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ See:
* [AppendOnlyTableFeature](../append-only-tables/AppendOnlyTableFeature.md#metadataRequiresFeatureToBeEnabled)
* [ChangeDataFeedTableFeature](../change-data-feed/ChangeDataFeedTableFeature.md#metadataRequiresFeatureToBeEnabled)
* [DeletionVectorsTableFeature](../deletion-vectors/DeletionVectorsTableFeature.md#metadataRequiresFeatureToBeEnabled)
* [IdentityColumnsTableFeature](../identity-columns/IdentityColumnsTableFeature.md#metadataRequiresFeatureToBeEnabled)
* [RowTrackingFeature](../row-tracking/RowTrackingFeature.md#metadataRequiresFeatureToBeEnabled)

Used when:
Expand All @@ -31,12 +32,12 @@ Used when:

* [AppendOnlyTableFeature](../append-only-tables/AppendOnlyTableFeature.md)
* [ChangeDataFeedTableFeature](../change-data-feed/ChangeDataFeedTableFeature.md)
* `CheckConstraintsTableFeature`
* `ColumnMappingTableFeature`
* [CheckConstraintsTableFeature](../check-constraints/CheckConstraintsTableFeature.md)
* [ColumnMappingTableFeature](../column-mapping/ColumnMappingTableFeature.md)
* [DeletionVectorsTableFeature](../deletion-vectors/DeletionVectorsTableFeature.md)
* `GeneratedColumnsTableFeature`
* [GeneratedColumnsTableFeature](../generated-columns/GeneratedColumnsTableFeature.md)
* `IcebergCompatV1TableFeature`
* `InvariantsTableFeature`
* [InvariantsTableFeature](../column-invariants/InvariantsTableFeature.md)
* [RowTrackingFeature](../row-tracking/RowTrackingFeature.md)
* `TimestampNTZTableFeature`

Expand Down
10 changes: 9 additions & 1 deletion docs/table-features/LegacyWriterFeature.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# LegacyWriterFeature

`LegacyWriterFeature` is...FIXME
## Implementations

* [AppendOnlyTableFeature](../append-only-tables/AppendOnlyTableFeature.md)
* [ChangeDataFeedTableFeature](../change-data-feed/ChangeDataFeedTableFeature.md)
* [CheckConstraintsTableFeature](../check-constraints/CheckConstraintsTableFeature.md)
* [GeneratedColumnsTableFeature](../generated-columns/GeneratedColumnsTableFeature.md)
* [IdentityColumnsTableFeature](../identity-columns/IdentityColumnsTableFeature.md)
* [InvariantsTableFeature](../column-invariants/InvariantsTableFeature.md)
* `LegacyReaderWriterFeature`

0 comments on commit 7ee8420

Please sign in to comment.