Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] UNIQUE index must contain all columns in the table's distribution key #270

Closed
1 of 2 tasks
congxuebin opened this issue Oct 31, 2023 · 1 comment
Closed
1 of 2 tasks
Labels
type: Bug Something isn't working

Comments

@congxuebin
Copy link
Collaborator

congxuebin commented Oct 31, 2023

Cloudberry Database version

No response

What happened

gpadmin=# CREATE TABLE sto_uao_neg_index (id int, date date, amt decimal(10,2))

with (appendonly=true, orientation=column)

DISTRIBUTED BY (id);

CREATE TABLE

gpadmin=# drop index if exists uni_index;

NOTICE:  index "uni_index" does not exist, skipping

DROP INDEX

gpadmin=# CREATE UNIQUE INDEX uni_index ON sto_uao_neg_index (date);

ERROR:  UNIQUE index must contain all columns in the table's distribution key

What you think should happen instead

ERROR:  append-only tables do not support unique indexes

How to reproduce

Please see info as above

Operating System

centos7

Anything else

UAOCSDDLTestCase.test_neg_uao_index in cbdbtestrepo failed

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@congxuebin congxuebin added the type: Bug Something isn't working label Oct 31, 2023
@congxuebin congxuebin changed the title [Bug] [Bug] UNIQUE index must contain all columns in the table's distribution key Oct 31, 2023
@congxuebin
Copy link
Collaborator Author

According to Yifan's note, this is incompatible change. Closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant