1
0
Fork 0

Merging upstream version 25.7.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:51:42 +01:00
parent dba379232c
commit aa0eae236a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
102 changed files with 52995 additions and 52070 deletions

View file

@ -33,7 +33,7 @@ from sqlglot.helper import (
seq_get,
subclasses,
)
from sqlglot.tokens import Token
from sqlglot.tokens import Token, TokenError
if t.TYPE_CHECKING:
from sqlglot._typing import E, Lit
@ -1393,6 +1393,8 @@ class Create(DDL):
"begin": False,
"end": False,
"clone": False,
"concurrently": False,
"clustered": False,
}
@property
@ -5483,6 +5485,16 @@ class JSONTable(Func):
}
# https://docs.snowflake.com/en/sql-reference/functions/object_insert
class ObjectInsert(Func):
arg_types = {
"this": True,
"key": True,
"value": True,
"update_flag": False,
}
class OpenJSONColumnDef(Expression):
arg_types = {"this": True, "kind": True, "path": False, "as_json": False}
@ -5886,7 +5898,7 @@ class Sqrt(Func):
class Stddev(AggFunc):
pass
_sql_names = ["STDDEV", "STDEV"]
class StddevPop(AggFunc):
@ -6881,7 +6893,7 @@ def parse_identifier(name: str | Identifier, dialect: DialectType = None) -> Ide
"""
try:
expression = maybe_parse(name, dialect=dialect, into=Identifier)
except ParseError:
except (ParseError, TokenError):
expression = to_identifier(name)
return expression