diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-16 05:45:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-16 05:45:49 +0000 |
commit | 87bb420e43bf31021b090be98143a32042255a46 (patch) | |
tree | f68baf119ccffb6ebc64ba066af1491ddcb0f121 /tests/test_expressions.py | |
parent | Adding upstream version 21.0.2. (diff) | |
download | sqlglot-87bb420e43bf31021b090be98143a32042255a46.tar.xz sqlglot-87bb420e43bf31021b090be98143a32042255a46.zip |
Adding upstream version 21.1.1.upstream/21.1.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r-- | tests/test_expressions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index f415ff6..d42eeca 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -243,6 +243,15 @@ class TestExpressions(unittest.TestCase): 'SELECT * FROM a1 AS a /* a */, b.a /* b */, c.a2 /* c.a */, d2 /* d.a */ CROSS JOIN e.a CROSS JOIN "F" /* f-F.A */ CROSS JOIN g1.a /* g */', ) + self.assertEqual( + exp.replace_tables( + parse_one("select * from example.table", dialect="bigquery"), + {"example.table": "`my-project.example.table`"}, + dialect="bigquery", + ).sql(), + 'SELECT * FROM "my-project".example.table /* example.table */', + ) + def test_expand(self): self.assertEqual( exp.expand( |