mirror of
https://github.com/apache/superset.git
synced 2026-04-14 05:34:38 +00:00
fix(sql): Add Impala dialect support to sqlglot parser (#34662)
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Joe Li <joe@preset.io>
This commit is contained in:
28
tests/unit_tests/sql/test_impala_dialect.py
Normal file
28
tests/unit_tests/sql/test_impala_dialect.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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.
|
||||
|
||||
"""Tests for Impala dialect support in sqlglot."""
|
||||
|
||||
from sqlglot import Dialects
|
||||
|
||||
from superset.sql.parse import SQLGLOT_DIALECTS
|
||||
|
||||
|
||||
def test_impala_dialect_mapped() -> None:
|
||||
"""Test that Impala is correctly mapped to Hive dialect."""
|
||||
assert "impala" in SQLGLOT_DIALECTS
|
||||
assert SQLGLOT_DIALECTS["impala"] == Dialects.HIVE
|
||||
Reference in New Issue
Block a user