Skip to content

Commit abf03f1

Browse files
committed
feat(duckdb): implement argmin and argmax
1 parent ee7c878 commit abf03f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ibis/backends/duckdb/registry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def _struct_column(t, expr):
229229
ops.Arbitrary: _arbitrary,
230230
ops.GroupConcat: _string_agg,
231231
ops.StructColumn: _struct_column,
232+
ops.ArgMin: reduction(sa.func.min_by),
233+
ops.ArgMax: reduction(sa.func.max_by),
232234
}
233235
)
234236

0 commit comments

Comments
 (0)