-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importccl: support DEFAULT columns for constant DEFAULT expressions.
Currently, IMPORT does not support importing DEFAULT columns, and non-targeted columns must be nullable. This PR adds support for IMPORT INTO that involves non-targeted columns with DEFAULT expressions that are constant. Constant expressions are literals and functions that depend solely on their arguments (with arguments also being constant expressions). This is done by evaluating the required default expressions in the function sql/row/row_converter:NewDatumRowConverter. Release note (general change): IMPORT INTO now supports columns with constant default expressions, and non-targeted columns with constant default expressions are no longer required to be nullable.
- Loading branch information
anzoteh96
committed
Jul 1, 2020
1 parent
6af68d0
commit 101730a
Showing
3 changed files
with
184 additions
and
29 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