Adding upstream version 6.0.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d01130b3f1
commit
527597d2af
122 changed files with 23162 additions and 0 deletions
10
sqlglot/dialects/trino.py
Normal file
10
sqlglot/dialects/trino.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from sqlglot import exp
|
||||
from sqlglot.dialects.presto import Presto
|
||||
|
||||
|
||||
class Trino(Presto):
|
||||
class Generator(Presto.Generator):
|
||||
TRANSFORMS = {
|
||||
**Presto.Generator.TRANSFORMS,
|
||||
exp.ArraySum: lambda self, e: f"REDUCE({self.sql(e, 'this')}, 0, (acc, x) -> acc + x, acc -> acc)",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue