File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
dbt/include/singlestore/macros Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3737 {%- set sort_key = config .get (' sort_key' , []) - %} {# SORT KEY (sort_key) #}
3838 {%- set shard_key = config .get (' shard_key' , []) - %} {# SHARD KEY (shard_key) #}
3939 {%- set unique_table_key = config .get (' unique_table_key' , []) - %} {# UNIQUE KEY (unique_table_key) #}
40- {%- set storage_type = config .get (' storage_type' , ' ' ) - %} {# REFERENCE | ROWSTORE #}
40+ {%- set reference = config .get (' reference' , True) - %} {# REFERENCE #}
41+ {%- set storage_type = config .get (' storage_type' , ' ' ) - %} {# ROWSTORE | COLUMNSTORE #}
4142 {%- set charset = config .get (' charset' , none) - %} {# CHARACTER SET charset #}
4243 {%- set collation = config .get (' collation' , none) - %} {# COLLATE collation #}
4344 {%- set contract_config = config .get (' contract' ) - %}
9192 {% if create_definition_list | length - %}
9293 {% set create_definition_str = create_definition_list|join (" , " ) - %}
9394 {% elif not contract_defined_primary and not contract_defined_unique - %}
94- {% if storage_type | lower == ' reference' - %}
95+ {% if reference - %}
9596 {% set create_definition_str = ' ' - %}
9697 {% else - %}
9798 {% set create_definition_str = ' SHARD KEY ()' - %}
120121 {% endif - %}
121122 {% endif - %}
122123
124+ {% if reference - %}
125+ {% set storage_type = storage_type ~ ' reference ' - %}
126+ {% endif - %}
127+
123128 create {{ storage_type }} table
124129 {{ relation .include (database= True) }}
125130 {%- if contract_config .enforced - %}
You can’t perform that action at this time.
0 commit comments