-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
In the definition of table ducklake_schema we have:
CREATE TABLE ducklake_schema (schema_id BIGINT PRIMARY KEY, schema_uuid UUID, begin_snapshot BIGINT, end_snapshot BIGINT, schema_name VARCHAR);The schema_id column is a primary key, and according to the documentation it is assigned from
schema_idis the numeric identifier of the schema.schema_idis incremented fromnext_catalog_idin theducklake_snapshottable.
A similar situation occurs in ducklake_table table:
table_idis the numeric identifier of the table.table_idis incremented fromnext_catalog_idin theducklake_snapshot table.
And the definition is:
CREATE TABLE ducklake_table (table_id BIGINT, table_uuid UUID, begin_snapshot BIGINT, end_snapshot BIGINT, schema_id BIGINT, table_name VARCHAR);Shouldn't table_id be declared as primary key as well. Why not?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels