summaryrefslogtreecommitdiffstats
path: root/tests/test_expressions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 18:46:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 18:46:54 +0000
commit5cb547bdac6f807c3a1bc42faffaceaf726a3e3e (patch)
tree89287ecd0265188fc3119e9d711017634526a09e /tests/test_expressions.py
parentAdding upstream version 16.4.0. (diff)
downloadsqlglot-5cb547bdac6f807c3a1bc42faffaceaf726a3e3e.tar.xz
sqlglot-5cb547bdac6f807c3a1bc42faffaceaf726a3e3e.zip
Adding upstream version 16.4.2.upstream/16.4.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r--tests/test_expressions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py
index e7a37f3..f83addb 100644
--- a/tests/test_expressions.py
+++ b/tests/test_expressions.py
@@ -179,6 +179,10 @@ class TestExpressions(unittest.TestCase):
self.assertEqual(exp.table_name(parse_one("a.b", into=exp.Table)), "a.b")
self.assertEqual(exp.table_name(parse_one("a.b.c", into=exp.Table)), "a.b.c")
self.assertEqual(exp.table_name("a.b.c"), "a.b.c")
+ self.assertEqual(
+ exp.table_name(parse_one("foo.`{bar,er}`", read="databricks"), dialect="databricks"),
+ "foo.`{bar,er}`",
+ )
def test_table(self):
self.assertEqual(exp.table_("a", alias="b"), parse_one("select * from a b").find(exp.Table))