You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2024/12/09 17:07:10 UTC

(superset) branch master updated: fix(pinot): remove query aliases from SELECT and ORDER BY clauses in Pinot (#31341)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 931f69d6c7 fix(pinot): remove query aliases from SELECT and ORDER BY clauses in Pinot (#31341)
931f69d6c7 is described below

commit 931f69d6c7cfcf2958280b9cf1cd686e43279105
Author: Yuri <yu...@users.noreply.github.com>
AuthorDate: Mon Dec 9 09:07:03 2024 -0800

    fix(pinot): remove query aliases from SELECT and ORDER BY clauses in Pinot (#31341)
---
 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 faf919f103..f7798da9b1 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}",