1
0
Fork 0

Adding upstream version 26.3.8.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 22:00:18 +01:00
parent 7ee28625fb
commit b80c44840a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
89 changed files with 59179 additions and 57645 deletions

View file

@ -2453,6 +2453,10 @@ class Join(Expression):
def alias_or_name(self) -> str:
return self.this.alias_or_name
@property
def is_semi_or_anti_join(self) -> bool:
return self.kind in ("SEMI", "ANTI")
def on(
self,
*expressions: t.Optional[ExpOrStr],
@ -4382,6 +4386,7 @@ class DataType(Expression):
DECIMAL128 = auto()
DECIMAL256 = auto()
DOUBLE = auto()
DYNAMIC = auto()
ENUM = auto()
ENUM8 = auto()
ENUM16 = auto()
@ -6155,6 +6160,7 @@ class JSONExtract(Binary, Func):
"variant_extract": False,
"json_query": False,
"option": False,
"quote": False,
}
_sql_names = ["JSON_EXTRACT"]
is_var_len_args = True
@ -6164,6 +6170,14 @@ class JSONExtract(Binary, Func):
return self.expression.output_name if not self.expressions else ""
# https://trino.io/docs/current/functions/json.html#json-query
class JSONExtractQuote(Expression):
arg_types = {
"option": True,
"scalar": False,
}
class JSONExtractArray(Func):
arg_types = {"this": True, "expression": False}
_sql_names = ["JSON_EXTRACT_ARRAY"]
@ -6516,7 +6530,7 @@ class StrPosition(Func):
"this": True,
"substr": True,
"position": False,
"instance": False,
"occurrence": False,
}
@ -6653,7 +6667,7 @@ class TsOrDsToDatetime(Func):
class TsOrDsToTime(Func):
pass
arg_types = {"this": True, "format": False, "safe": False}
class TsOrDsToTimestamp(Func):
@ -6665,7 +6679,7 @@ class TsOrDiToDi(Func):
class Unhex(Func):
pass
arg_types = {"this": True, "expression": False}
class Unicode(Func):
@ -6768,7 +6782,17 @@ class XMLElement(Func):
class XMLTable(Func):
arg_types = {"this": True, "passing": False, "columns": False, "by_ref": False}
arg_types = {
"this": True,
"namespaces": False,
"passing": False,
"columns": False,
"by_ref": False,
}
class XMLNamespace(Expression):
pass
class Year(Func):