File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1057,7 +1057,7 @@ class DuckDB(Dialect):
10571057
10581058 INVERSE_TIME_MAPPING = {
10591059 "%e" : "%-d" , # BigQuery's space-padded day (%e) -> DuckDB's no-padding day (%-d)
1060- "%:z" : "%z" ,
1060+ "%:z" : "%z" , # In DuckDB %z can represent ±HH:MM, ±HHMM, or ±HH.
10611061 "%-z" : "%z" ,
10621062 }
10631063
Original file line number Diff line number Diff line change @@ -696,7 +696,7 @@ class Snowflake(Dialect):
696696 "mi" : "%M" ,
697697 "SS" : "%S" ,
698698 "ss" : "%S" ,
699- "FF0" : "%n" , # %n, which is the internal representation of nanoseconds
699+ "FF0" : "%n" , # %n is the internal representation of nanoseconds
700700 "ff0" : "%n" ,
701701 "FF1" : "%n" ,
702702 "ff1" : "%n" ,
@@ -720,10 +720,10 @@ class Snowflake(Dialect):
720720 "ff" : "%n" ,
721721 "TZHTZM" : "%z" ,
722722 "tzhtzm" : "%z" ,
723- "TZH:TZM" : "%:z" , # internal representation
724- "tzh:tzm" : "%:z" , # internal representation
725- "TZH" : "%-z" , # internal representation
726- "tzh" : "%-z" , # internal representation
723+ "TZH:TZM" : "%:z" , # internal representation for ±HH:MM
724+ "tzh:tzm" : "%:z" ,
725+ "TZH" : "%-z" , # internal representation ±HH
726+ "tzh" : "%-z" ,
727727 '"T"' : "T" , # remove the optional double quotes around the separator between the date and time
728728 # Seems like Snowflake treats AM/PM in the format string as equivalent,
729729 # only the time (stamp) value's AM/PM affects the output
You can’t perform that action at this time.
0 commit comments