Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ type Snowflake_File_Format
+ (if dt != "" then " DATE_FORMAT = '" + (dt.replace "'" "''") + "'" else ' DATE_FORMAT = AUTO')
+ (if tm != "" then " TIME_FORMAT = '" + (tm.replace "'" "''") + "'" else ' TIME_FORMAT = AUTO')
+ (if ts != "" then " TIMESTAMP_FORMAT = '" + (ts.replace "'" "''") + "'" else ' TIMESTAMP_FORMAT = AUTO')
+ (if compression != Auto_Boolean.AUTO then ' COMPRESSION = ' + compression.to_sql else '')
+ (if compression != Auto_Boolean.Auto then ' COMPRESSION = ' + compression.to_sql else '')
output
Snowflake_File_Format.JSON dt tm ts compression ->
output = 'TYPE = JSON'
+ (if dt != "" then " DATE_FORMAT = '" + (dt.replace "'" "''") + "'" else ' DATE_FORMAT = AUTO')
+ (if tm != "" then " TIME_FORMAT = '" + (tm.replace "'" "''") + "'" else ' TIME_FORMAT = AUTO')
+ (if ts != "" then " TIMESTAMP_FORMAT = '" + (ts.replace "'" "''") + "'" else ' TIMESTAMP_FORMAT = AUTO')
+ (if compression != Auto_Boolean.AUTO then ' COMPRESSION = ' + compression.to_sql else '')
+ (if compression != Auto_Boolean.Auto then ' COMPRESSION = ' + compression.to_sql else '')
output
Snowflake_File_Format.Avro -> 'TYPE = AVRO'
Snowflake_File_Format.ORC -> 'TYPE = ORC'
Expand Down
Loading