'Duplicate key' error when update column with list data type and table has a primary key #11915
Closed
2 tasks done
Labels
expected behavior
The behavior described in the issue is expected
Needs Documentation
Use for issues or PRs that require changes in the documentation
needs triage
What happens?
This behaviour happens for both Python and WASM (https://shell.duckdb.org/) environments. There is no way to update the column with the list data type and the table has a primary key. The UPDATE query always return 'Duplicate key' error.
To Reproduce
the last update query will return the following error:
Constraint Error: Duplicate key "aid: 1" violates primary key constraint. If this is an unexpected constraint violation please double check with the known index limitations section in our documentation (docs - sql - indexes).
I am not updating the primary key column, and the comments column can be updated, just the column with list data type is causing the problem.
OS:
Browser / Windows / Linux
DuckDB Version:
0.10.2
DuckDB Client:
WASM or Python
Full Name:
Sasha Zhang
Affiliation:
Unisa
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: