1
0
Fork 0

Adding upstream version 26.16.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-25 07:26:56 +02:00
parent 4bfa0e7e53
commit 6e767a6f98
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
110 changed files with 62370 additions and 61414 deletions

View file

@ -57,11 +57,13 @@ def _no_sort_array(self: Presto.Generator, expression: exp.SortArray) -> str:
def _schema_sql(self: Presto.Generator, expression: exp.Schema) -> str:
if isinstance(expression.parent, exp.PartitionedByProperty):
# Any columns in the ARRAY[] string literals should not be quoted
expression.transform(lambda n: n.name if isinstance(n, exp.Identifier) else n, copy=False)
partition_exprs = [
self.sql(c) if isinstance(c, (exp.Func, exp.Property)) else self.sql(c, "this")
for c in expression.expressions
]
return self.sql(exp.Array(expressions=[exp.Literal.string(c) for c in partition_exprs]))
if expression.parent: