From 4f3eadbf5fb13a1561c4ee23d28849809ef2669d Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:16:24 -0400 Subject: [PATCH] chore(trino): use generic summary ops --- ibis/backends/sql/compilers/trino.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ibis/backends/sql/compilers/trino.py b/ibis/backends/sql/compilers/trino.py index f15d57ee71043..ee217f4d431e4 100644 --- a/ibis/backends/sql/compilers/trino.py +++ b/ibis/backends/sql/compilers/trino.py @@ -568,3 +568,11 @@ def visit_TableUnnest( join_type="CROSS" if not keep_empty else "LEFT", ) ) + + def visit_Info(self, op, *, parent): + # unnest cannot contain aggregates + return self.visit_GenericInfo(op, parent=parent) + + def visit_Describe(self, op, *, parent, quantile): + # unnest cannot contain aggregates + return self.visit_GenericDescribe(op, parent=parent, quantile=quantile)