Merging upstream version 25.32.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
160ab5bf81
commit
02152e9ba6
74 changed files with 2284 additions and 1814 deletions
sqlglot/dialects
|
@ -264,6 +264,13 @@ class Dialect(metaclass=_Dialect):
|
|||
False: Disables function name normalization.
|
||||
"""
|
||||
|
||||
PRESERVE_ORIGINAL_NAMES: bool = False
|
||||
"""
|
||||
Whether the name of the function should be preserved inside the node's metadata,
|
||||
can be useful for roundtripping deprecated vs new functions that share an AST node
|
||||
e.g JSON_VALUE vs JSON_EXTRACT_SCALAR in BigQuery
|
||||
"""
|
||||
|
||||
LOG_BASE_FIRST: t.Optional[bool] = True
|
||||
"""
|
||||
Whether the base comes first in the `LOG` function.
|
||||
|
@ -397,6 +404,13 @@ class Dialect(metaclass=_Dialect):
|
|||
ARRAY_AGG_INCLUDES_NULLS: t.Optional[bool] = True
|
||||
"""Whether ArrayAgg needs to filter NULL values."""
|
||||
|
||||
PROMOTE_TO_INFERRED_DATETIME_TYPE = False
|
||||
"""
|
||||
This flag is used in the optimizer's canonicalize rule and determines whether x will be promoted
|
||||
to the literal's type in x::DATE < '2020-01-01 12:05:03' (i.e., DATETIME). When false, the literal
|
||||
is cast to x's type to match it instead.
|
||||
"""
|
||||
|
||||
REGEXP_EXTRACT_DEFAULT_GROUP = 0
|
||||
"""The default value for the capturing group."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue