forked from apache/cloudberry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dead code in ATExecSetDistributedBy
This commit is the first step to refactor ATExecSetDistributedBy. Its main purpose is to remove some dead code in this function and during the process we find some helper functions can also be simplified so the simplification is also in this commit. According to MPP-7770, we should disable changing storage options for now. It is ugly to just throw an error when encounter `appendonly` option but without removing the code. In this commit remove all related logic. Because of with clause can only contain reshuffle|reorganize, we only new_rel_opts if the table itself is ao|aoco. No need to deduce it from with clause. We also remove the unnecessary checks at the start of this function. Because These checks have been already done in the function `ATPrepCmd`. Co-authored-by: Shuejie Zhang <shzhang@pivotal.io >
- Loading branch information
1 parent
1136f2f
commit 50f2e3b
Showing
8 changed files
with
89 additions
and
247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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