We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Jira Link: DB-14191
diff --git a/src/yb/integration-tests/upgrade-tests/pg15_upgrade-test.cc b/src/yb/integration-tests/upgrade-tests/pg15_upgrade-test.cc index db47f04602..e690e099c2 100644 --- a/src/yb/integration-tests/upgrade-tests/pg15_upgrade-test.cc +++ b/src/yb/integration-tests/upgrade-tests/pg15_upgrade-test.cc @@ -1299,4 +1299,25 @@ TEST_F(Pg15UpgradeSequenceTest, IdentityColumn) { ASSERT_NO_FATALS(Add3Rows(conn, kSequencePg11, seq_val_pg11_)); } } + +TEST_F(Pg15UpgradeTest, UniqueConstraintsPartitionedTables) { + ASSERT_OK(ExecuteStatements( + { + "CREATE TABLE employees_hash (" + " id INT," + " age INT," + " val BIGINT," + " text_column1 TEXT," + " uuid_col UUID," + " PRIMARY KEY (id, age)" + ") PARTITION BY RANGE (age);", + "CREATE TABLE employees_hash_young PARTITION OF employees_hash" + " FOR VALUES FROM (0) TO (30);", + "CREATE TABLE employees_hash_old PARTITION OF employees_hash" + " FOR VALUES FROM (30) TO (100);", + "ALTER TABLE employees_hash ADD CONSTRAINT employees_hash_unique_id UNIQUE (id, age);" + })); + ASSERT_OK(UpgradeClusterToMixedMode()); + ASSERT_OK(FinalizeUpgradeFromMixedMode()); +} } // namespace yb
Run the test
./yb_build.sh release --cxx-test pg15_upgrade-test --gtest_filter Pg15UpgradeTest.UniqueConstraintsPartitionedTables
kind/bug
The text was updated successfully, but these errors were encountered:
Related to #24260 (general issue with ysql dump)
Sorry, something went wrong.
fizaaluthra
No branches or pull requests
Jira Link: DB-14191
Description
Run the test
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: