From be50d61f0b93ed6b4ee2aba329f998b3fab36be7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Jul 2024 06:28:31 +0200 Subject: Adding upstream version 25.7.1. Signed-off-by: Daniel Baumann --- tests/dialects/test_tsql.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/dialects/test_tsql.py') diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index 11d60e7..9658a02 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -391,6 +391,17 @@ class TestTSQL(Validator): self.validate_identity("HASHBYTES('MD2', 'x')") self.validate_identity("LOG(n, b)") + self.validate_all( + "STDEV(x)", + read={ + "": "STDDEV(x)", + }, + write={ + "": "STDDEV(x)", + "tsql": "STDEV(x)", + }, + ) + def test_option(self): possible_options = [ "HASH GROUP", @@ -888,6 +899,14 @@ class TestTSQL(Validator): }, ) + for colstore in ("NONCLUSTERED COLUMNSTORE", "CLUSTERED COLUMNSTORE"): + self.validate_identity(f"CREATE {colstore} INDEX index_name ON foo.bar") + + self.validate_identity( + "CREATE COLUMNSTORE INDEX index_name ON foo.bar", + "CREATE NONCLUSTERED COLUMNSTORE INDEX index_name ON foo.bar", + ) + def test_insert_cte(self): self.validate_all( "INSERT INTO foo.bar WITH cte AS (SELECT 1 AS one) SELECT * FROM cte", -- cgit v1.2.3