File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
include/fabric/macros/materializations/seeds Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ class FabricColumn(Column):
1010 "FLOAT" : "FLOAT" ,
1111 "INTEGER" : "INT" ,
1212 "BOOLEAN" : "BIT" ,
13- "DATETIME2(6)" : "DATETIME2(6)" ,
1413 }
1514
1615 @classmethod
Original file line number Diff line number Diff line change 5757 {# Return SQL so we can render it out into the compiled files #}
5858 {{ return(statements[0 ]) }}
5959{% endmacro %}
60-
61- {% macro fabric__create_csv_table(model, agate_table) %}
62- {%- set column_override = model[' config' ].get(' column_types' , {}) - %}
63- {%- set quote_seed_column = model[' config' ].get(' quote_columns' , None) - %}
64-
65- {% set sql %}
66- create table {{ this .render () }} (
67- {%- for col_name in agate_table .column_names - %}
68- {%- set inferred_type = adapter .convert_type (agate_table, loop .index0 ) - %}
69- {%- set type = column_override .get (col_name, inferred_type) - %}
70- {{ log(inferred_type ~ ' column data type inferred for ' ~ type )}}
71- {%- set column_name = (col_name | string) - %}
72- {{ adapter .quote_seed_column (column_name, quote_seed_column) }} {{ type }} {%- if not loop .last - %}, {%- endif - %}
73- {%- endfor - %}
74- )
75- {% endset %}
76-
77- {% call statement(' _' ) - %}
78- {{ sql }}
79- {%- endcall %}
80-
81- {{ return(sql) }}
82- {% endmacro %}
You can’t perform that action at this time.
0 commit comments