Skip to content

Commit

Permalink
fix(trino,duckdb,postgres): make cumulative notany/notall aggrega…
Browse files Browse the repository at this point in the history
…tions work
  • Loading branch information
cpcloud committed Mar 16, 2023
1 parent e322f1d commit c2e985f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/base/sql/alchemy/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ def _window_function(t, window):
end = _translate_window_boundary(window.frame.end)
additional_params = {how: (start, end)}

result = reduction.over(
partition_by=partition_by, order_by=order_by, **additional_params
result = sa.over(
reduction, partition_by=partition_by, order_by=order_by, **additional_params
)

if isinstance(window.func, (ops.RowNumber, ops.DenseRank, ops.MinRank, ops.NTile)):
Expand Down
6 changes: 0 additions & 6 deletions ibis/backends/tests/test_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,11 @@ def calc_zscore(s):
id='cumnotany',
marks=pytest.mark.notyet(
(
"duckdb",
'impala',
'postgres',
'mssql',
'mysql',
'sqlite',
'snowflake',
'trino',
),
reason="notany() over window not supported",
),
Expand All @@ -188,14 +185,11 @@ def calc_zscore(s):
id='cumnotall',
marks=pytest.mark.notyet(
(
"duckdb",
'impala',
'postgres',
'mssql',
'mysql',
'sqlite',
'snowflake',
'trino',
),
reason="notall() over window not supported",
),
Expand Down

0 comments on commit c2e985f

Please sign in to comment.