From 42a1548cecf48d18233f56e3385cf9c89abcb9c2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 3 Mar 2024 15:11:07 +0100 Subject: Merging upstream version 22.2.0. Signed-off-by: Daniel Baumann --- tests/dialects/test_databricks.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/dialects/test_databricks.py') diff --git a/tests/dialects/test_databricks.py b/tests/dialects/test_databricks.py index 8222170..94f2dc2 100644 --- a/tests/dialects/test_databricks.py +++ b/tests/dialects/test_databricks.py @@ -38,6 +38,11 @@ class TestDatabricks(Validator): "CREATE FUNCTION add_one(x INT) RETURNS INT LANGUAGE PYTHON AS $FOO$def add_one(x):\n return x+1$FOO$" ) + self.validate_identity("TRUNCATE TABLE t1 PARTITION(age = 10, name = 'test', address)") + self.validate_identity( + "TRUNCATE TABLE t1 PARTITION(age = 10, name = 'test', city LIKE 'LA')" + ) + self.validate_all( "CREATE TABLE foo (x INT GENERATED ALWAYS AS (YEAR(y)))", write={ -- cgit v1.2.3