...
Public Interfaces
DEFAULT Syntax
metadataCol |
VARCHAR METADATA DEFAULT 'UNKNOWN',
col VARCHAR DEFAULT '',
col2 VARCHAR DEFAULT NULL
)
WITH
(
...
)
combine with VIRTUAL:
CREATE
TABLE
table_ |
1 metadataCol_2
|
|
Proposed Changes
Flink Table API & SQL handles DEFAULT constraint in the ddl.
...
The proposed syntax also follows this concept.
Implementation
Add DEFAULT keyword like current VIRTUAL keyword. Implemented details to be added.
Compatibility, Deprecation, and Migration Plan
The DEFAULT constraint is an optional KEYWORD to let uses define default value, so we don't need to deal with migration plan. And here is no need to add deprecationdeprecations.
Test Plan
Add DEFAULT constraint test cases & ensure all table & sql cases passed
...