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_presto.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/dialects/test_presto.py') diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index d3d1a76..2ea595e 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -647,6 +647,7 @@ class TestPresto(Validator): """JSON '"foo"'""", write={ "bigquery": """PARSE_JSON('"foo"')""", + "postgres": """CAST('"foo"' AS JSON)""", "presto": """JSON_PARSE('"foo"')""", "snowflake": """PARSE_JSON('"foo"')""", }, @@ -1142,3 +1143,18 @@ MATCH_RECOGNIZE ( "presto": "DATE_FORMAT(ts, '%y')", }, ) + + def test_signum(self): + self.validate_all( + "SIGN(x)", + read={ + "presto": "SIGN(x)", + "spark": "SIGNUM(x)", + "starrocks": "SIGN(x)", + }, + write={ + "presto": "SIGN(x)", + "spark": "SIGN(x)", + "starrocks": "SIGN(x)", + }, + ) -- cgit v1.2.3