-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to use LIKE to create foreign tables, ex: CREATE FOREIGN TABLE ft(LIKE t1); Foreign table ft will use t1's column definitions as its own. In CBDB, we usually use foreign tables to import data from outside data source. Each target table usually has an associated foreign table. This is very useful if target table has a lot of columns, making it easy to create a foreign table without defining columns one by one, and avoid mistake. Distribution policy is not inherited for this case because it should be defined with options by users. Authored-by: Zhang Mingli avamingli@gmail.com
- Loading branch information
Showing
3 changed files
with
64 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