mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: old Firebolt dialect (#31849)
This commit is contained in:
@@ -1146,3 +1146,21 @@ SELECT
|
||||
FROM tbl
|
||||
""".strip()
|
||||
)
|
||||
|
||||
|
||||
def test_firebolt_old() -> None:
|
||||
"""
|
||||
Test the dialect for the old Firebolt syntax.
|
||||
"""
|
||||
from superset.sql.dialects import FireboltOld
|
||||
from superset.sql.parse import SQLGLOT_DIALECTS
|
||||
|
||||
SQLGLOT_DIALECTS["firebolt"] = FireboltOld
|
||||
|
||||
sql = "SELECT * FROM t1 UNNEST(col1 AS foo)"
|
||||
assert (
|
||||
SQLStatement(sql, "firebolt").format()
|
||||
== """SELECT
|
||||
*
|
||||
FROM t1 UNNEST(col1 AS foo)"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user