Skip to content

Commit 665265c

Browse files
krzysztof-kwittcpcloud
authored andcommitted
fix(trino): remove invalid operations from registry
1 parent ba2ec59 commit 665265c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ibis/backends/trino/registry.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,3 +302,26 @@ def _round(t, op):
302302
),
303303
}
304304
)
305+
306+
_invalid_operations = {
307+
# ibis.expr.operations.analytic
308+
ops.CumulativeOp,
309+
ops.NTile,
310+
# ibis.expr.operations.generic
311+
ops.TableArrayView,
312+
ops.TypeOf,
313+
# ibis.expr.operations.logical
314+
ops.Between,
315+
ops.ExistsSubquery,
316+
ops.NotExistsSubquery,
317+
# ibis.expr.operations.maps
318+
ops.MapLength,
319+
# ibis.expr.operations.reductions
320+
ops.CountDistinct,
321+
ops.MultiQuantile,
322+
ops.Quantile,
323+
}
324+
325+
operation_registry = {
326+
k: v for k, v in operation_registry.items() if k not in _invalid_operations
327+
}

0 commit comments

Comments
 (0)