Skip to content

Commit

Permalink
feat(datafusion): implement ops.Exp
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-kwitt authored and cpcloud committed Feb 16, 2023
1 parent a19fd87 commit 7cb3ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions ibis/backends/datafusion/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ def negate(op):
@translate.register(ops.Cos)
@translate.register(ops.Sin)
@translate.register(ops.Tan)
@translate.register(ops.Exp)
def trig(op):
func_name = op.__class__.__name__.lower()
func = getattr(df.functions, func_name)
Expand Down
8 changes: 1 addition & 7 deletions ibis/backends/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,7 @@ def test_isnan_isinf(
param(
L(5.556).exp(),
math.exp(5.556),
id='expr',
marks=pytest.mark.notimpl(
["datafusion"], raises=com.OperationNotDefinedError
),
id='exp',
),
param(
L(5.556).sign(),
Expand Down Expand Up @@ -872,9 +869,6 @@ def test_simple_math_functions_columns(
lambda t: t.double_col.add(1).exp(),
lambda t: np.exp(t.double_col + 1),
id='exp',
marks=pytest.mark.notimpl(
["datafusion"], raises=com.OperationNotDefinedError
),
),
param(
lambda t: t.double_col.add(1).log(2),
Expand Down

0 comments on commit 7cb3ade

Please sign in to comment.