diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-16 16:50:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-16 16:50:34 +0000 |
commit | 7b2d028262d3e100dfc42b94bb705a09a5c7e93d (patch) | |
tree | a957a3e8fac83475e3652d4bae8cab896e6b22a6 /tests/dialects/test_databricks.py | |
parent | Releasing debian version 25.20.1-1. (diff) | |
download | sqlglot-7b2d028262d3e100dfc42b94bb705a09a5c7e93d.tar.xz sqlglot-7b2d028262d3e100dfc42b94bb705a09a5c7e93d.zip |
Merging upstream version 25.21.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_databricks.py')
-rw-r--r-- | tests/dialects/test_databricks.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/dialects/test_databricks.py b/tests/dialects/test_databricks.py index a46794b..c2965e8 100644 --- a/tests/dialects/test_databricks.py +++ b/tests/dialects/test_databricks.py @@ -142,6 +142,13 @@ class TestDatabricks(Validator): """SELECT raw:`zip code`, raw:`fb:testid`, raw:store['bicycle'], raw:store["zip code"]""", """SELECT raw:["zip code"], raw:["fb:testid"], raw:store.bicycle, raw:store["zip code"]""", ) + self.validate_all( + "SELECT col:`fr'uit`", + write={ + "databricks": """SELECT col:["fr'uit"]""", + "postgres": "SELECT JSON_EXTRACT_PATH(col, 'fr''uit')", + }, + ) def test_datediff(self): self.validate_all( |