Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 03:31 AM
Looks like the primary key column ID is not being found during the write operation.
Kindly verify the schema.
Use a command like below to create the table with id as the primary key.
CREATE TABLE A_Table ( ID BIGINT IDENTITY(1,1) PRIMARY KEY NOT NULL, -- other columns );
Documentations:
https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-using.html
https://docs.databricks.com/ja/sql/language-manual/sql-ref-syntax-ddl-create-table-constraint.html