Skip to content

Commit

Permalink
feat(sqlalchemy): add degrees and radians
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed May 23, 2022
1 parent dd1f3bc commit 8b7415f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion ibis/backends/base/sql/alchemy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,10 @@ def _string_join(t, expr):
ops.TimestampFromYMDHMS: lambda t, expr: sa.func.make_timestamp(
*map(t.translate, expr.op().args[:6]) # ignore timezone
),
ops.Degrees: unary(sa.func.degrees),
ops.Radians: unary(sa.func.radians),
}


# TODO: unit tests for each of these
_binary_ops = {
# Binary arithmetic
Expand Down
8 changes: 0 additions & 8 deletions ibis/backends/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,9 @@ def test_isnan_isinf(
"clickhouse",
"dask",
"datafusion",
"duckdb",
"impala",
"mysql",
"pandas",
"postgres",
"pyspark",
"sqlite",
]
),
),
Expand All @@ -179,13 +175,9 @@ def test_isnan_isinf(
"clickhouse",
"dask",
"datafusion",
"duckdb",
"impala",
"mysql",
"pandas",
"postgres",
"pyspark",
"sqlite",
]
),
),
Expand Down

0 comments on commit 8b7415f

Please sign in to comment.