Merging upstream version 25.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7ab180cac9
commit
3b7539dcad
79 changed files with 28803 additions and 24929 deletions
|
@ -3119,22 +3119,6 @@ class Intersect(Union):
|
|||
pass
|
||||
|
||||
|
||||
class Unnest(UDTF):
|
||||
arg_types = {
|
||||
"expressions": True,
|
||||
"alias": False,
|
||||
"offset": False,
|
||||
}
|
||||
|
||||
@property
|
||||
def selects(self) -> t.List[Expression]:
|
||||
columns = super().selects
|
||||
offset = self.args.get("offset")
|
||||
if offset:
|
||||
columns = columns + [to_identifier("offset") if offset is True else offset]
|
||||
return columns
|
||||
|
||||
|
||||
class Update(Expression):
|
||||
arg_types = {
|
||||
"with": False,
|
||||
|
@ -5240,6 +5224,22 @@ class PosexplodeOuter(Posexplode, ExplodeOuter):
|
|||
pass
|
||||
|
||||
|
||||
class Unnest(Func, UDTF):
|
||||
arg_types = {
|
||||
"expressions": True,
|
||||
"alias": False,
|
||||
"offset": False,
|
||||
}
|
||||
|
||||
@property
|
||||
def selects(self) -> t.List[Expression]:
|
||||
columns = super().selects
|
||||
offset = self.args.get("offset")
|
||||
if offset:
|
||||
columns = columns + [to_identifier("offset") if offset is True else offset]
|
||||
return columns
|
||||
|
||||
|
||||
class Floor(Func):
|
||||
arg_types = {"this": True, "decimals": False}
|
||||
|
||||
|
@ -5765,7 +5765,7 @@ class StrPosition(Func):
|
|||
|
||||
|
||||
class StrToDate(Func):
|
||||
arg_types = {"this": True, "format": True}
|
||||
arg_types = {"this": True, "format": False}
|
||||
|
||||
|
||||
class StrToTime(Func):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue