forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow SUBPARTITION BY clause on empty partition
We should not allow subpartition by clause when creating empty partition hierarchy with modern syntax (CREATE PARTITION BY ... without creating any partitions and then later on adding partitions by CREATE TABLE PARTITION OF...). Example: CREATE TABLE foo(i int, j int) PARTITION BY range(i) SUBPARTITION BY range(j); Here the info about subpart by j is lost. This is because the info in the subpartition by clause is currently lost. Partitions attached henceforth don't obey the partition policy of the top level. So, ban it outright - it is a bad mixture of upstream and legacy syntax.
- Loading branch information
1 parent
507b0b5
commit 4b2de78
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters