Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
CREATE SCHEMA command improvements:
1. add format
2. add default
3. add column properties
TupleSchema / ColumnMetadata improvements:
1. add properties map;
2. add format;
3. add default from string literal;
4. add ser / de methods.
Example:
create schema (col date not null format 'yyyy-MM-dd' default '2018-12-31' properties { 'prop1' = 'val1', 'prop2' = 'val2' }) path '/path/to/schema'
The following schema will be created:
{ "schema" : { "columns" : [ { "name" : "col", "type" : "DATE", "mode" : "REQUIRED", "format" : "yyyy-MM-dd", "default" : "2018-12-31", "properties" : { "prop2" : "val2", "prop1" : "val1" } } ] }, "version" : 1 }
Attachments
Issue Links
- links to