diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:06:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-23 05:06:14 +0000 |
commit | 38e6461a8afbd7cb83709ddb998f03d40ba87755 (patch) | |
tree | 64b68a893a3b946111b9cab69503f83ca233c335 /sqlglot/dialects/trino.py | |
parent | Releasing debian version 20.4.0-1. (diff) | |
download | sqlglot-38e6461a8afbd7cb83709ddb998f03d40ba87755.tar.xz sqlglot-38e6461a8afbd7cb83709ddb998f03d40ba87755.zip |
Merging upstream version 20.9.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/trino.py')
-rw-r--r-- | sqlglot/dialects/trino.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sqlglot/dialects/trino.py b/sqlglot/dialects/trino.py index 3682ac7..eddb70a 100644 --- a/sqlglot/dialects/trino.py +++ b/sqlglot/dialects/trino.py @@ -1,6 +1,7 @@ from __future__ import annotations from sqlglot import exp +from sqlglot.dialects.dialect import merge_without_target_sql from sqlglot.dialects.presto import Presto @@ -11,6 +12,7 @@ class Trino(Presto): TRANSFORMS = { **Presto.Generator.TRANSFORMS, exp.ArraySum: lambda self, e: f"REDUCE({self.sql(e, 'this')}, 0, (acc, x) -> acc + x, acc -> acc)", + exp.Merge: merge_without_target_sql, } class Tokenizer(Presto.Tokenizer): |