Skip to content

Commit

Permalink
feat(pyspark): implement degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed May 23, 2022
1 parent c7b7f08 commit f478c7c
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 @@ -1974,3 +1974,8 @@ def compile_atan2(t, expr, scope, timecontext, **kwargs):
op = expr.op()
y, x = (t.translate(arg, scope, timecontext, **kwargs) for arg in op.args)
return F.atan2(y, x)


@compiles(ops.Degrees)
def compile_degrees(t, expr, scope, timecontext, **kwargs):
return F.degrees(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 @@ -175,7 +175,6 @@ def test_isnan_isinf(
"datafusion",
"impala",
"pandas",
"pyspark",
]
),
),
Expand Down

0 comments on commit f478c7c

Please sign in to comment.