1
0
Fork 0

Adding upstream version 26.14.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-16 09:04:38 +02:00
parent 539faf8d40
commit dfe1cec38a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
84 changed files with 63872 additions and 61909 deletions

View file

@ -2584,6 +2584,7 @@ class Lateral(UDTF):
"outer": False,
"alias": False,
"cross_apply": False, # True -> CROSS APPLY, False -> OUTER APPLY
"ordinality": False,
}
@ -2660,6 +2661,10 @@ class Sort(Order):
class Ordered(Expression):
arg_types = {"this": True, "desc": False, "nulls_first": True, "with_fill": False}
@property
def name(self) -> str:
return self.this.name
class Property(Expression):
arg_types = {"this": True, "value": True}
@ -2781,7 +2786,11 @@ class FallbackProperty(Property):
class FileFormatProperty(Property):
arg_types = {"this": True}
arg_types = {"this": False, "expressions": False}
class CredentialsProperty(Property):
arg_types = {"expressions": True}
class FreespaceProperty(Property):
@ -3129,6 +3138,7 @@ class Properties(Expression):
"CLUSTERED_BY": ClusteredByProperty,
"COLLATE": CollateProperty,
"COMMENT": SchemaCommentProperty,
"CREDENTIALS": CredentialsProperty,
"DEFINER": DefinerProperty,
"DISTKEY": DistKeyProperty,
"DISTRIBUTED_BY": DistributedByProperty,
@ -3366,6 +3376,9 @@ class SetOperation(Query):
"expression": True,
"distinct": False,
"by_name": False,
"side": False,
"kind": False,
"on": False,
**QUERY_MODIFIERS,
}
@ -3404,6 +3417,14 @@ class SetOperation(Query):
def right(self) -> Query:
return self.expression
@property
def kind(self) -> str:
return self.text("kind").upper()
@property
def side(self) -> str:
return self.text("side").upper()
class Union(SetOperation):
pass
@ -4307,7 +4328,7 @@ class Pivot(Expression):
"this": False,
"alias": False,
"expressions": False,
"field": False,
"fields": False,
"unpivot": False,
"using": False,
"group": False,
@ -4321,6 +4342,10 @@ class Pivot(Expression):
def unpivot(self) -> bool:
return bool(self.args.get("unpivot"))
@property
def fields(self) -> t.List[Expression]:
return self.args.get("fields", [])
# https://duckdb.org/docs/sql/statements/unpivot#simplified-unpivot-syntax
# UNPIVOT ... INTO [NAME <col_name> VALUE <col_value>][...,]
@ -6286,7 +6311,7 @@ class JSONBExtractScalar(Binary, Func):
class JSONFormat(Func):
arg_types = {"this": False, "options": False}
arg_types = {"this": False, "options": False, "is_json": False}
_sql_names = ["JSON_FORMAT"]