Skip to content

Commit 9344591

Browse files
committed
feat(pyspark): topk support
1 parent 2c33e46 commit 9344591

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ibis/backends/tests/test_aggregation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def test_topk_op(backend, alltypes, df, result_fn, expected_fn):
365365
)
366366
],
367367
)
368-
@mark.notimpl(["datafusion", "pandas", "dask", "pyspark"])
368+
@mark.notimpl(["datafusion", "pandas", "dask"])
369369
def test_topk_filter_op(alltypes, df, result_fn, expected_fn):
370370
# TopK expression will order rows by "count" but each backend
371371
# can have different result for that.

ibis/tests/expr/test_analytics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import pytest
1616

1717
import ibis
18-
import ibis.expr.operations as ops
1918
import ibis.expr.types as ir
2019
from ibis.tests.expr.mocks import MockBackend
2120
from ibis.tests.util import assert_equal
@@ -111,7 +110,7 @@ def test_topk_analysis_bug(airlines):
111110

112111
filtered = t.filter([delay_filter])
113112

114-
assert delay_filter._to_semi_join(t).equals(filtered)
113+
assert delay_filter._to_semi_join(t)[t].equals(filtered)
115114

116115

117116
def test_topk_function_late_bind(airlines):

0 commit comments

Comments
 (0)