We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
log
1 parent 6c8f8c6 commit 79941a4Copy full SHA for 79941a4
datafusion/tests/test_functions.py
@@ -133,6 +133,7 @@ def test_math_functions():
133
f.factorial(literal(6)),
134
f.isnan(col_nav),
135
f.iszero(col_nav),
136
+ f.log(literal(3), col_v + literal(pa.scalar(1))),
137
)
138
batches = df.collect()
139
assert len(batches) == 1
@@ -189,6 +190,9 @@ def test_math_functions():
189
190
np.testing.assert_array_almost_equal(result.column(34), math.factorial(6))
191
np.testing.assert_array_almost_equal(result.column(35), np.isnan(na_values))
192
np.testing.assert_array_almost_equal(result.column(36), na_values == 0)
193
+ np.testing.assert_array_almost_equal(
194
+ result.column(37), np.emath.logn(3, values + 1.0)
195
+ )
196
197
198
def test_string_functions(df):
0 commit comments