From 8c9c240ea1a45491a87ec9a829db9494a288e36f Mon Sep 17 00:00:00 2001 From: Yuri Bogomolov Date: Sun, 8 Dec 2024 18:24:02 -0800 Subject: [PATCH] fix(pinot): remove query aliases from SELECT and ORDER BY clauses in Pinot --- superset/db_engine_specs/pinot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superset/db_engine_specs/pinot.py b/superset/db_engine_specs/pinot.py index faf919f103276..f7798da9b19b8 100644 --- a/superset/db_engine_specs/pinot.py +++ b/superset/db_engine_specs/pinot.py @@ -26,6 +26,9 @@ class PinotEngineSpec(BaseEngineSpec): engine = "pinot" engine_name = "Apache Pinot" + allows_alias_in_select = False + allows_alias_in_orderby = False + # https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#datetime-functions _time_grain_expressions = { None: "{col}",