nytai commented on code in PR #43809:
URL: https://github.com/apache/superset/pull/43809#discussion_r3920634207


##########
superset/sql/dialects/starrocks.py:
##########
@@ -0,0 +1,139 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+"""
+StarRocks dialect for Superset, extending sqlglot's built-in StarRocks dialect.
+
+sqlglot's MySQL parser (which StarRocks' parser inherits from) resolves the
+schema in ``SHOW TABLES/DATABASES FROM|IN <schema>`` with ``_parse_id_var()``,
+which only ever consumes a single identifier. StarRocks additionally supports a
+catalog-qualified schema reference for its external catalogs, e.g.
+``SHOW TABLES IN catalog.schema``, which then fails to parse: sqlglot consumes
+the first identifier as the schema and leaves ``.schema`` dangling, which is
+rejected as an unexpected token.
+"""
+
+from __future__ import annotations
+
+from sqlglot import exp
+from sqlglot.dialects.starrocks import StarRocks as _StarRocks
+from sqlglot.parsers.starrocks import StarRocksParser as _StarRocksParser

Review Comment:
   the path exists in the pinned version, 
https://github.com/tobymao/sqlglot/blob/v30.17.0/sqlglot/parsers/starrocks.py
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to