Skip to content

Commit 095ded6

Browse files
committed
feat(snowflake): string to timestamp
1 parent 035f856 commit 095ded6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ibis/backends/snowflake/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def _map(_, op):
225225
ops.BitOr: reduction(sa.func.bitor_agg),
226226
ops.BitXor: reduction(sa.func.bitxor_agg),
227227
ops.DateFromYMD: fixed_arity(sa.func.date_from_parts, 3),
228+
ops.StringToTimestamp: fixed_arity(sa.func.to_timestamp_tz, 2),
228229
}
229230
)
230231

@@ -250,7 +251,6 @@ def _map(_, op):
250251
# ibis.expr.operations.temporal
251252
ops.ExtractMillisecond,
252253
ops.IntervalFromInteger,
253-
ops.StringToTimestamp,
254254
ops.TimestampDiff,
255255
ops.TimestampFromUNIX,
256256
ops.TimestampFromYMDHMS,

ibis/backends/tests/test_temporal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,8 @@ def test_integer_to_timestamp(backend, con, unit):
636636
'%m/%d/%y',
637637
id="mysql_format",
638638
marks=pytest.mark.never(
639-
["pyspark"], reason="datetime formatting style not supported"
639+
["pyspark", "snowflake"],
640+
reason="datetime formatting style not supported",
640641
),
641642
),
642643
param(
@@ -658,7 +659,6 @@ def test_integer_to_timestamp(backend, con, unit):
658659
'sqlite',
659660
'impala',
660661
'datafusion',
661-
'snowflake',
662662
'mssql',
663663
]
664664
)

0 commit comments

Comments
 (0)