Merging upstream version 26.14.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
68f1150572
commit
e9f53ab285
84 changed files with 63872 additions and 61909 deletions
|
@ -55,13 +55,10 @@ def simplify(expression, **kwargs):
|
|||
|
||||
|
||||
def annotate_functions(expression, **kwargs):
|
||||
from sqlglot.dialects import Dialect
|
||||
|
||||
dialect = kwargs.get("dialect")
|
||||
schema = kwargs.get("schema")
|
||||
|
||||
annotators = Dialect.get_or_raise(dialect).ANNOTATORS
|
||||
annotated = annotate_types(expression, annotators=annotators, schema=schema)
|
||||
annotated = annotate_types(expression, dialect=dialect, schema=schema)
|
||||
|
||||
return annotated.expressions[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue