Adding upstream version 26.16.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4bfa0e7e53
commit
6e767a6f98
110 changed files with 62370 additions and 61414 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue