summaryrefslogtreecommitdiffstats
path: root/sqlglot/dialects/trino.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqlglot/dialects/trino.py')
-rw-r--r--sqlglot/dialects/trino.py2
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):