Skip to content

Commit

Permalink
feat(pyspark): implement 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 f478c7c commit 18843c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ibis/backends/pyspark/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1979,3 +1979,8 @@ def compile_atan2(t, expr, scope, timecontext, **kwargs):
@compiles(ops.Degrees)
def compile_degrees(t, expr, scope, timecontext, **kwargs):
return F.degrees(t.translate(expr.op().arg, scope, timecontext, **kwargs))


@compiles(ops.Radians)
def compile_radians(t, expr, scope, timecontext, **kwargs):
return F.radians(t.translate(expr.op().arg, scope, timecontext, **kwargs))
1 change: 0 additions & 1 deletion ibis/backends/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def test_isnan_isinf(
"datafusion",
"impala",
"pandas",
"pyspark",
]
),
),
Expand Down

0 comments on commit 18843c0

Please sign in to comment.