summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_databricks.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-16 16:50:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-16 16:50:34 +0000
commit7b2d028262d3e100dfc42b94bb705a09a5c7e93d (patch)
treea957a3e8fac83475e3652d4bae8cab896e6b22a6 /tests/dialects/test_databricks.py
parentReleasing debian version 25.20.1-1. (diff)
downloadsqlglot-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.py7
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(