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

[YSQL] Partitions still create tables on pg-side failures #22359

Open
hulien22 opened this issue May 10, 2024 · 0 comments
Open

[YSQL] Partitions still create tables on pg-side failures #22359

hulien22 opened this issue May 10, 2024 · 0 comments
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage

Comments

@hulien22
Copy link
Contributor

hulien22 commented May 10, 2024

Jira Link: DB-11262
Partitions seem to still create a docdb table despite failing a cast check -- should be doing this check before creating the table

CREATE TABLE moneyp (a money) PARTITION BY LIST (a);
-- this fails due to invalid cast but still creates (and drops) a new table
CREATE TABLE moneyp_10 PARTITION OF moneyp FOR VALUES IN (10); 

Similarly, partitions also create a docdb table if there's a failure due to overlap:

CREATE TABLE bigintp (a bigint) PARTITION BY LIST (a);
CREATE TABLE bigintp_10 PARTITION OF bigintp FOR VALUES IN (10);
-- fails due to overlap:
CREATE TABLE bigintp_10_2 PARTITION OF bigintp FOR VALUES IN ('10');

These examples are taken from create_table.sql in pgregress, there are some other similar examples there as well

@hulien22 hulien22 added kind/bug This issue is a bug area/ysql Yugabyte SQL (YSQL) status/awaiting-triage Issue awaiting triage labels May 10, 2024
@yugabyte-ci yugabyte-ci added the priority/medium Medium priority issue label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage
Projects
None yet
Development

No branches or pull requests

2 participants