Skip to content

Commit

Permalink
feat(snowflake): string to timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 19, 2023
1 parent 035f856 commit 095ded6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibis/backends/snowflake/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def _map(_, op):
ops.BitOr: reduction(sa.func.bitor_agg),
ops.BitXor: reduction(sa.func.bitxor_agg),
ops.DateFromYMD: fixed_arity(sa.func.date_from_parts, 3),
ops.StringToTimestamp: fixed_arity(sa.func.to_timestamp_tz, 2),
}
)

Expand All @@ -250,7 +251,6 @@ def _map(_, op):
# ibis.expr.operations.temporal
ops.ExtractMillisecond,
ops.IntervalFromInteger,
ops.StringToTimestamp,
ops.TimestampDiff,
ops.TimestampFromUNIX,
ops.TimestampFromYMDHMS,
Expand Down
4 changes: 2 additions & 2 deletions ibis/backends/tests/test_temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,8 @@ def test_integer_to_timestamp(backend, con, unit):
'%m/%d/%y',
id="mysql_format",
marks=pytest.mark.never(
["pyspark"], reason="datetime formatting style not supported"
["pyspark", "snowflake"],
reason="datetime formatting style not supported",
),
),
param(
Expand All @@ -658,7 +659,6 @@ def test_integer_to_timestamp(backend, con, unit):
'sqlite',
'impala',
'datafusion',
'snowflake',
'mssql',
]
)
Expand Down

0 comments on commit 095ded6

Please sign in to comment.