Skip to content

Commit

Permalink
fix(trino): only support how='first' with arbitrary reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 26, 2023
1 parent 1a16401 commit 315b5e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ibis/backends/trino/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def _literal(t, op):


def _arbitrary(t, op):
if op.how == "heavy":
raise com.UnsupportedOperationError('Trino does not support how="heavy"')
if op.how != "first":
raise com.UnsupportedOperationError(
'Trino only supports how="first" for `arbitrary` reduction'
)
return reduction(sa.func.arbitrary)(t, op)


Expand Down

0 comments on commit 315b5e7

Please sign in to comment.