Edit on GitHub

sqlglot.parsers.teradata

  1from __future__ import annotations
  2
  3import typing as t
  4
  5from sqlglot import exp, parser
  6from sqlglot.dialects.dialect import build_formatted_trunc
  7from sqlglot.helper import seq_get
  8from sqlglot.tokens import TokenType
  9from sqlglot.trie import new_trie
 10
 11# Ranking and navigation functions don't take a frame and FIRST_VALUE/LAST_VALUE have their own default
 12NON_FRAMED_WINDOW_FUNCTIONS = (
 13    exp.CumeDist,
 14    exp.DenseRank,
 15    exp.FirstValue,
 16    exp.Lag,
 17    exp.LastValue,
 18    exp.Lead,
 19    exp.NthValue,
 20    exp.Ntile,
 21    exp.PercentRank,
 22    exp.Rank,
 23)
 24
 25
 26def is_window_aggregate(window: exp.Window) -> bool:
 27    return isinstance(window.this, exp.AggFunc) and not isinstance(
 28        window.this, NON_FRAMED_WINDOW_FUNCTIONS
 29    )
 30
 31
 32class TeradataParser(parser.Parser):
 33    TABLESAMPLE_CSV = True
 34    VALUES_FOLLOWED_BY_PAREN = False
 35
 36    TABLE_ALIAS_TOKENS = parser.Parser.TABLE_ALIAS_TOKENS | {
 37        TokenType.ANTI,
 38        TokenType.SEMI,
 39    }
 40
 41    # Maximum number of literal type parameters. The tokenizer also recognizes
 42    # aliases from other dialects, including INT32 and BYTE for integer types.
 43    CONVERSION_TYPES: t.ClassVar = {
 44        "BYTEINT": 0,
 45        "SMALLINT": 0,
 46        "INT": 0,
 47        "INTEGER": 0,
 48        "BIGINT": 0,
 49        "DEC": 2,
 50        "DECIMAL": 2,
 51        "NUMERIC": 2,
 52        "FLOAT": 1,
 53        "REAL": 0,
 54        "DOUBLE PRECISION": 0,
 55        "CHAR": 1,
 56        "CHARACTER": 1,
 57        "VARCHAR": 1,
 58        "CHAR VARYING": 1,
 59        "CHARACTER VARYING": 1,
 60        "DATE": 0,
 61        "TIME": 1,
 62        "TIMESTAMP": 1,
 63        "INTERVAL": 0,
 64    }
 65    CONVERSION_ATTRIBUTES = {"FORMAT", "TITLE", "NAMED"}
 66
 67    CHARSET_TRANSLATORS: t.ClassVar = {
 68        "GRAPHIC_TO_KANJISJIS",
 69        "GRAPHIC_TO_LATIN",
 70        "GRAPHIC_TO_UNICODE",
 71        "GRAPHIC_TO_UNICODE_PadSpace",
 72        "KANJI1_KanjiEBCDIC_TO_UNICODE",
 73        "KANJI1_KanjiEUC_TO_UNICODE",
 74        "KANJI1_KANJISJIS_TO_UNICODE",
 75        "KANJI1_SBC_TO_UNICODE",
 76        "KANJISJIS_TO_GRAPHIC",
 77        "KANJISJIS_TO_LATIN",
 78        "KANJISJIS_TO_UNICODE",
 79        "LATIN_TO_GRAPHIC",
 80        "LATIN_TO_KANJISJIS",
 81        "LATIN_TO_UNICODE",
 82        "LOCALE_TO_UNICODE",
 83        "UNICODE_TO_GRAPHIC",
 84        "UNICODE_TO_GRAPHIC_PadGraphic",
 85        "UNICODE_TO_GRAPHIC_VarGraphic",
 86        "UNICODE_TO_KANJI1_KanjiEBCDIC",
 87        "UNICODE_TO_KANJI1_KanjiEUC",
 88        "UNICODE_TO_KANJI1_KANJISJIS",
 89        "UNICODE_TO_KANJI1_SBC",
 90        "UNICODE_TO_KANJISJIS",
 91        "UNICODE_TO_LATIN",
 92        "UNICODE_TO_LOCALE",
 93        "UNICODE_TO_UNICODE_FoldSpace",
 94        "UNICODE_TO_UNICODE_Fullwidth",
 95        "UNICODE_TO_UNICODE_Halfwidth",
 96        "UNICODE_TO_UNICODE_NFC",
 97        "UNICODE_TO_UNICODE_NFD",
 98        "UNICODE_TO_UNICODE_NFKC",
 99        "UNICODE_TO_UNICODE_NFKD",
100    }
101
102    FUNC_TOKENS = (parser.Parser.FUNC_TOKENS - {TokenType.REPLACE}) | {
103        TokenType.BEGIN,
104        TokenType.END,
105        TokenType.MOD,
106    }
107
108    STATEMENT_PARSERS = {
109        **parser.Parser.STATEMENT_PARSERS,
110        TokenType.DATABASE: lambda self: self.expression(
111            exp.Use(this=self._parse_table(schema=False))
112        ),
113        TokenType.EXECUTE: lambda self: self._parse_execute(),
114        TokenType.REPLACE: lambda self: self._parse_create(),
115        TokenType.LOCK: lambda self: self._parse_locking_statement(),
116    }
117
118    def _is_hex_character_string(self) -> bool:
119        return (
120            self._curr.token_type == TokenType.STRING
121            and self._next.token_type == TokenType.VAR
122            and self._next.text.upper() in {"XC", "XCV"}
123            and self._curr.end + 1 == self._next.start
124        )
125
126    def _parse_atom(self) -> exp.Expr | None:
127        if self._is_hex_character_string():
128            return None
129        return super()._parse_atom()
130
131    def _parse_string(self) -> exp.Expr | None:
132        if self._is_hex_character_string():
133            self.raise_error("Hexadecimal character literals are not supported in this context")
134            return None
135        return super()._parse_string()
136
137    def _parse_primary(self) -> exp.Expr | None:
138        if self._is_hex_character_string():
139            token = self._curr
140            if any(char not in "0123456789abcdefABCDEF" for char in token.text):
141                self.raise_error("Invalid hexadecimal character literal", token)
142            self._advance()
143            expression = self.expression(exp.HexString(this=token.text, is_character=True), token)
144            expression.meta["end"] = self._curr.end
145            expression.meta["col"] = self._curr.col
146            self._advance()
147            self._add_comments(expression)
148            return expression
149        primary = super()._parse_primary()
150        if (
151            self._prev.token_type == TokenType.STRING
152            and self._curr.token_type == TokenType.VAR
153            and self._curr.text.upper() in {"XC", "XCV"}
154            and self._is_connected()
155        ):
156            self.raise_error("Adjacent hexadecimal character literals are not supported")
157        return primary
158
159    def _parse_function_call(
160        self,
161        functions: dict[str, t.Callable] | None = None,
162        anonymous: bool = False,
163        optional_parens: bool = True,
164        any_token: bool = False,
165    ) -> exp.Expr | None:
166        expression = super()._parse_function_call(functions, anonymous, optional_parens, any_token)
167        conversion = expression.this if isinstance(expression, exp.Window) else expression
168        if isinstance(conversion, (exp.StrToDate, exp.StrToTime, exp.TsOrDsToDate)):
169            fmt = conversion.args.get("format")
170            if isinstance(fmt, exp.Expr) and any(
171                e.args.get("is_character") for e in fmt.find_all(exp.HexString)
172            ):
173                self.raise_error(
174                    "Hexadecimal character literals are not supported in conversion formats"
175                )
176        return expression
177
178    def _parse_interval_span(
179        self, this: exp.Expr, parse_function_unit: bool = True
180    ) -> exp.Interval:
181        return super()._parse_interval_span(
182            this, parse_function_unit=parse_function_unit and not self._conversion_follows()
183        )
184
185    def _parse_interval(
186        self, require_interval: bool = True, parse_function_unit: bool = True
187    ) -> exp.Add | exp.Interval | None:
188        interval = super()._parse_interval(require_interval, parse_function_unit)
189        if interval and any(e.args.get("is_character") for e in interval.find_all(exp.HexString)):
190            self.raise_error("Hexadecimal character literals are not supported in intervals")
191        return interval
192
193    def _parse_execute(self) -> exp.Execute | exp.Command:
194        start = self._prev
195        this = self._parse_table_parts(schema=True)
196        expressions = []
197
198        if self._match(TokenType.L_PAREN) and not self._match(TokenType.R_PAREN):
199            while True:
200                argument = self._parse_assignment()
201                if argument is None:
202                    # Do not discard omitted arguments or replace them with NULL.
203                    return self._parse_as_command(start)
204                expressions.append(argument)
205                if not self._match(TokenType.COMMA):
206                    break
207            self._match_r_paren()
208
209        if self._curr:
210            # Preserve other EXECUTE forms, such as EXECUTE IMMEDIATE.
211            return self._parse_as_command(start)
212
213        return self.expression(exp.Execute(this=this, expressions=expressions))
214
215    def _parse_locking_statement(self) -> exp.LockingStatement:
216        # Reuse exp.LockingProperty parsing for the lock kind, type etc
217        locking_property = self._parse_locking()
218        wrapped_query = self._parse_select()
219
220        if not wrapped_query:
221            self.raise_error("Expected SELECT statement after LOCKING clause")
222
223        return self.expression(
224            exp.LockingStatement(this=locking_property, expression=wrapped_query)
225        )
226
227    SET_PARSERS = {
228        **parser.Parser.SET_PARSERS,
229        "QUERY_BAND": lambda self: self._parse_query_band(),
230    }
231
232    SET_TRIE = new_trie(key.split(" ") for key in SET_PARSERS)
233
234    FUNCTION_PARSERS = {
235        **parser.Parser.FUNCTION_PARSERS,
236        # https://docs.teradata.com/r/SQL-Functions-Operators-Exprs-and-Predicates/June-2017/Data-Type-Conversions/TRYCAST
237        "TRYCAST": parser.Parser.FUNCTION_PARSERS["TRY_CAST"],
238        "RANGE_N": lambda self: self._parse_rangen(),
239        "TRANSLATE": lambda self: self._parse_translate(),
240    }
241
242    FUNCTIONS = {
243        **parser.Parser.FUNCTIONS,
244        "CARDINALITY": exp.ArraySize.from_arg_list,
245        "CHARACTERS": exp.Length.from_arg_list,
246        "CURDATE": exp.CurrentDate.from_arg_list,
247        "CURTIME": exp.CurrentTime.from_arg_list,
248        "RANDOM": lambda args: exp.Rand(lower=seq_get(args, 0), upper=seq_get(args, 1)),
249        "TRUNC": build_formatted_trunc,
250    }
251
252    EXPONENT = {
253        TokenType.DSTAR: exp.Pow,
254    }
255
256    def _parse_translate(self) -> exp.TranslateCharacters:
257        this = self._parse_assignment()
258        self._match(TokenType.USING)
259        self._match_texts(self.CHARSET_TRANSLATORS)
260
261        return self.expression(
262            exp.TranslateCharacters(
263                this=this,
264                expression=self._prev.text.upper(),
265                with_error=self._match_text_seq("WITH", "ERROR"),
266            )
267        )
268
269    def _parse_delete(self, alias_tokens: t.Collection[TokenType] | None = None) -> exp.Delete:
270        expression = super()._parse_delete(
271            alias_tokens=alias_tokens or self.TABLE_ALIAS_TOKENS - {TokenType.ALL}
272        )
273        if not expression.args.get("where"):
274            self._match(TokenType.ALL)
275        return expression
276
277    def _parse_insert(self) -> exp.Insert | exp.MultitableInserts:
278        expression = super()._parse_insert()
279        target = expression.this
280        if (
281            isinstance(expression, exp.Insert)
282            and not expression.expression
283            and not expression.args.get("default")
284            and not expression.args.get("source")
285            and isinstance(target, exp.Schema)
286            and target.expressions
287            and all(
288                isinstance(value, (exp.Literal, exp.Func, exp.Null)) for value in target.expressions
289            )
290        ):
291            expression.set("this", target.this)
292            expression.set(
293                "expression",
294                self.expression(
295                    exp.Values(expressions=[exp.Tuple(expressions=target.expressions)]),
296                    comments=target.pop_comments(),
297                ),
298            )
299        return expression
300
301    # FROM before SET in Teradata UPDATE syntax
302    # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/Teradata-VantageTM-SQL-Data-Manipulation-Language-17.20/Statement-Syntax/UPDATE/UPDATE-Syntax-Basic-Form-FROM-Clause
303    def _parse_update(self) -> exp.Update:
304        return self.expression(
305            exp.Update(
306                this=self._parse_table(alias_tokens=self.UPDATE_ALIAS_TOKENS),
307                from_=self._parse_from(joins=True),
308                expressions=self._match(TokenType.SET)
309                and self._parse_csv(self._parse_update_assignment),
310                where=self._parse_where(),
311            )
312        )
313
314    def _parse_table_sample(self, as_modifier: bool = False) -> exp.TableSample | None:
315        sample = super()._parse_table_sample(as_modifier=as_modifier)
316
317        # A single integer sample is a row count, while a fraction is a proportion of rows
318        # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Data-Manipulation-Language/SELECT-Statements/SAMPLE-Clause/SAMPLE-Clause-Syntax
319        if sample and len(sample.expressions) == 1 and sample.expressions[0].is_number:
320            num = sample.expressions[0].pop()
321            if num.is_int:
322                sample.set("size", num)
323            else:
324                percent = format(num.to_py().scaleb(2).normalize(), "f")
325                sample.set("percent", exp.Literal.number(percent))
326
327        return sample
328
329    def _parse_rangen(self):
330        this = self._parse_id_var()
331        self._match(TokenType.BETWEEN)
332
333        expressions = self._parse_csv(self._parse_assignment)
334        each = self._match_text_seq("EACH") and self._parse_assignment()
335
336        return self.expression(exp.RangeN(this=this, expressions=expressions, each=each))
337
338    def _parse_query_band(self) -> exp.QueryBand:
339        # Parse: SET QUERY_BAND = 'key=value;key2=value2;' FOR SESSION|TRANSACTION
340        # Also supports: SET QUERY_BAND = 'key=value;' UPDATE FOR SESSION|TRANSACTION
341        # Also supports: SET QUERY_BAND = NONE FOR SESSION|TRANSACTION
342        self._match(TokenType.EQ)
343
344        # Handle both string literals and NONE keyword
345        if self._match_text_seq("NONE"):
346            query_band_string: exp.Expr | None = exp.Var(this="NONE")
347        else:
348            query_band_string = self._parse_string()
349
350        update = self._match_text_seq("UPDATE")
351        self._match_text_seq("FOR")
352
353        # Handle scope - can be SESSION, TRANSACTION, VOLATILE, or SESSION VOLATILE
354        if self._match_text_seq("SESSION", "VOLATILE"):
355            scope = "SESSION VOLATILE"
356        elif self._match_texts(("SESSION", "TRANSACTION")):
357            scope = self._prev.text.upper()
358        else:
359            scope = None
360
361        return self.expression(exp.QueryBand(this=query_band_string, scope=scope, update=update))
362
363    def _parse_index_params(self) -> exp.IndexParameters:
364        this = super()._parse_index_params()
365
366        if this.args.get("on"):
367            this.set("on", None)
368            self._retreat(self._index - 2)
369        return this
370
371    def _parse_table_part(self, schema: bool = False) -> exp.Expr | None:
372        if not schema and self._match_pair(TokenType.TABLE, TokenType.L_PAREN, advance=False):
373            if function := self._try_parse(self._parse_table_function):
374                return function
375        return super()._parse_table_part(schema)
376
377    def _parse_table_function(self) -> exp.TableFromRows | None:
378        # TABLE(db.f(DATE)) requires a function call even when DATE could be a target type.
379        self._advance(2)
380        parts: list[exp.Expr] = []
381        while self._next.token_type == TokenType.DOT:
382            qualifier = self._parse_id_var()
383            if not qualifier or not self._match(TokenType.DOT):
384                return None
385            parts.append(qualifier)
386
387        call = self._parse_function(
388            anonymous=bool(parts) or self._curr.token_type == TokenType.IDENTIFIER,
389            optional_parens=False,
390            any_token=bool(parts),
391        )
392        if not call or not self._match(TokenType.R_PAREN):
393            return None
394        return self.expression(
395            exp.TableFromRows(this=exp.Dot.build([*parts, call]) if parts else call)
396        )
397
398    def _parse_function(
399        self,
400        functions: dict[str, t.Callable] | None = None,
401        anonymous: bool = False,
402        optional_parens: bool = True,
403        any_token: bool = False,
404    ) -> exp.Expr | None:
405        if optional_parens and self._conversion_follows():
406            name = self._curr.text.upper()
407            if self._curr.token_type == TokenType.IDENTIFIER:
408                return None
409            if self._prev.token_type != TokenType.DOT:
410                value = self.NO_PAREN_FUNCTIONS.get(self._curr.token_type)
411                if name == "CURDATE":
412                    value = exp.CurrentDate
413                elif name == "CURTIME":
414                    value = exp.CurrentTime
415                if value:
416                    self._advance()
417                    return self.expression(value())
418                if name == "DATE":
419                    return None
420
421            if self._tokens[self._index + 2].text.upper() in self.CONVERSION_ATTRIBUTES or (
422                name not in (self.FUNCTIONS if functions is None else functions)
423                and name not in self.FUNCTION_PARSERS
424            ):
425                return None
426
427        return super()._parse_function(functions, anonymous, optional_parens, any_token)
428
429    def _conversion_follows(self) -> bool:
430        if self._next.token_type != TokenType.L_PAREN:
431            return False
432        index = self._index
433        self._advance(2)
434        if self._match_texts(self.CONVERSION_ATTRIBUTES, advance=False):
435            # Attribute keywords can also be function names, e.g. f(TITLE(x)).
436            follows = self._next.token_type != TokenType.L_PAREN
437        else:
438            follows = self._match_texts(self.CONVERSION_TYPES, advance=False) and bool(
439                self._try_parse(self._parse_conversion_items)
440            )
441        self._retreat(index)
442        return follows
443
444    def _parse_conversion_type(self) -> exp.Expr | None:
445        index = self._index
446        if self._next.token_type == TokenType.L_PAREN:
447            # _parse_types also accepts expressions for sizes, e.g. DECIMAL(x). In
448            # this ambiguous position only a literal precision, scale or length counts.
449            max_params = self.CONVERSION_TYPES[self._curr.text.upper()]
450            self._advance(2)
451            for _ in range(max_params):
452                if not self._match(TokenType.NUMBER) or not self._prev.text.isdecimal():
453                    return None
454                if self._match(TokenType.R_PAREN):
455                    break
456                if not self._match(TokenType.COMMA):
457                    return None
458            else:
459                return None
460            self._retreat(index)
461
462        return self._parse_types(allow_identifiers=False)
463
464    def _parse_conversion_items(self) -> dict[str, exp.Expr] | None:
465        items: dict[str, exp.Expr] = {}
466        while True:
467            if self._match_texts(self.CONVERSION_ATTRIBUTES):
468                key = self._prev.text.upper()
469                if key == "NAMED":
470                    value = self._parse_id_var(
471                        any_token=False, tokens={TokenType.VAR, TokenType.STRING}
472                    )
473                    if not isinstance(value, exp.Identifier):
474                        return None
475                else:
476                    value = self._parse_string()
477                    if not value or (key == "TITLE" and not value.is_string):
478                        return None
479            elif self._match_texts(self.CONVERSION_TYPES, advance=False):
480                key = "TYPE"
481                value = self._parse_conversion_type()
482                if not isinstance(value, exp.DataType):
483                    return None
484            else:
485                return None
486
487            if key in items:
488                return None
489            items[key] = value
490            if not self._match(TokenType.COMMA):
491                break
492
493        return items if self._match(TokenType.R_PAREN) else None
494
495    def _parse_type(
496        self, parse_interval: bool = True, fallback_to_identifier: bool = False
497    ) -> exp.Expr | None:
498        this = super()._parse_type(parse_interval, fallback_to_identifier)
499        while this and self._match(TokenType.L_PAREN):
500            index = self._index - 1
501            items = self._try_parse(self._parse_conversion_items)
502            if not items:
503                if self._match_texts(self.CONVERSION_ATTRIBUTES, advance=False):
504                    self.raise_error("Invalid Teradata conversion attribute")
505                self._retreat(index)
506                break
507
508            to = items.get("TYPE")
509            fmt = items.get("FORMAT")
510            if to is not None:
511                if fmt or not to.is_type(*exp.DataType.NUMERIC_TYPES):
512                    this = self.expression(exp.TeradataConversion(this=this, to=to, format=fmt))
513                else:
514                    this = self.expression(exp.Cast(this=this, to=to))
515            elif fmt:
516                this = self.expression(exp.FormatPhrase(this=this, format=fmt))
517            if "TITLE" in items:
518                this = self.expression(exp.TeradataTitle(this=this, title=items["TITLE"]))
519            if "NAMED" in items:
520                this = self.expression(exp.TeradataNamed(this=this, alias=items["NAMED"]))
521            this = self._parse_column_ops(this)
522        return this
523
524    def _parse_projections(self) -> tuple[list[exp.Expr], list[exp.Expr] | None]:
525        projections, exclude = super()._parse_projections()
526        for i, projection in enumerate(projections):
527            alias = (
528                projection
529                if isinstance(projection, exp.Alias)
530                and not isinstance(projection, exp.TeradataNamed)
531                else None
532            )
533            this = alias.this if alias else projection
534            node = this
535            named_alias = None
536            while isinstance(node, (exp.FormatPhrase, exp.TeradataTitle, exp.TeradataNamed)):
537                child = node.this
538                if isinstance(node, exp.TeradataNamed):
539                    if alias or named_alias:
540                        child.add_comments(node.args["alias"].pop_comments())
541                    named_alias = named_alias or node.args["alias"]
542                    child.add_comments(node.pop_comments())
543                    if node is this:
544                        this = child
545                    node.replace(child)
546                node = child
547            if named_alias:
548                if alias:
549                    alias.set("this", this)
550                else:
551                    projections[i] = self.expression(exp.Alias(this=this, alias=named_alias))
552        return projections, exclude
553
554    def _parse_window(self, this: exp.Expr | None, alias: bool = False) -> exp.Expr | None:
555        window = super()._parse_window(this, alias)
556
557        # Unlike ANSI, Teradata window aggregates with ORDER BY and no ROWS clause span the whole partition
558        # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Functions-Expressions-and-Predicates/Ordered-Analytical/Window-Aggregate-Functions/The-Window-Specification/ANSI-Compliance
559        if (
560            isinstance(window, exp.Window)
561            and window.args.get("order")
562            and not window.args.get("spec")
563            and is_window_aggregate(window)
564        ):
565            window.set(
566                "spec",
567                exp.WindowSpec(
568                    kind="ROWS",
569                    start="UNBOUNDED",
570                    start_side="PRECEDING",
571                    end="UNBOUNDED",
572                    end_side="FOLLOWING",
573                ),
574            )
575
576        return window
def is_window_aggregate(window: sqlglot.expressions.query.Window) -> bool:
27def is_window_aggregate(window: exp.Window) -> bool:
28    return isinstance(window.this, exp.AggFunc) and not isinstance(
29        window.this, NON_FRAMED_WINDOW_FUNCTIONS
30    )
class TeradataParser(sqlglot.parser.Parser):
 33class TeradataParser(parser.Parser):
 34    TABLESAMPLE_CSV = True
 35    VALUES_FOLLOWED_BY_PAREN = False
 36
 37    TABLE_ALIAS_TOKENS = parser.Parser.TABLE_ALIAS_TOKENS | {
 38        TokenType.ANTI,
 39        TokenType.SEMI,
 40    }
 41
 42    # Maximum number of literal type parameters. The tokenizer also recognizes
 43    # aliases from other dialects, including INT32 and BYTE for integer types.
 44    CONVERSION_TYPES: t.ClassVar = {
 45        "BYTEINT": 0,
 46        "SMALLINT": 0,
 47        "INT": 0,
 48        "INTEGER": 0,
 49        "BIGINT": 0,
 50        "DEC": 2,
 51        "DECIMAL": 2,
 52        "NUMERIC": 2,
 53        "FLOAT": 1,
 54        "REAL": 0,
 55        "DOUBLE PRECISION": 0,
 56        "CHAR": 1,
 57        "CHARACTER": 1,
 58        "VARCHAR": 1,
 59        "CHAR VARYING": 1,
 60        "CHARACTER VARYING": 1,
 61        "DATE": 0,
 62        "TIME": 1,
 63        "TIMESTAMP": 1,
 64        "INTERVAL": 0,
 65    }
 66    CONVERSION_ATTRIBUTES = {"FORMAT", "TITLE", "NAMED"}
 67
 68    CHARSET_TRANSLATORS: t.ClassVar = {
 69        "GRAPHIC_TO_KANJISJIS",
 70        "GRAPHIC_TO_LATIN",
 71        "GRAPHIC_TO_UNICODE",
 72        "GRAPHIC_TO_UNICODE_PadSpace",
 73        "KANJI1_KanjiEBCDIC_TO_UNICODE",
 74        "KANJI1_KanjiEUC_TO_UNICODE",
 75        "KANJI1_KANJISJIS_TO_UNICODE",
 76        "KANJI1_SBC_TO_UNICODE",
 77        "KANJISJIS_TO_GRAPHIC",
 78        "KANJISJIS_TO_LATIN",
 79        "KANJISJIS_TO_UNICODE",
 80        "LATIN_TO_GRAPHIC",
 81        "LATIN_TO_KANJISJIS",
 82        "LATIN_TO_UNICODE",
 83        "LOCALE_TO_UNICODE",
 84        "UNICODE_TO_GRAPHIC",
 85        "UNICODE_TO_GRAPHIC_PadGraphic",
 86        "UNICODE_TO_GRAPHIC_VarGraphic",
 87        "UNICODE_TO_KANJI1_KanjiEBCDIC",
 88        "UNICODE_TO_KANJI1_KanjiEUC",
 89        "UNICODE_TO_KANJI1_KANJISJIS",
 90        "UNICODE_TO_KANJI1_SBC",
 91        "UNICODE_TO_KANJISJIS",
 92        "UNICODE_TO_LATIN",
 93        "UNICODE_TO_LOCALE",
 94        "UNICODE_TO_UNICODE_FoldSpace",
 95        "UNICODE_TO_UNICODE_Fullwidth",
 96        "UNICODE_TO_UNICODE_Halfwidth",
 97        "UNICODE_TO_UNICODE_NFC",
 98        "UNICODE_TO_UNICODE_NFD",
 99        "UNICODE_TO_UNICODE_NFKC",
100        "UNICODE_TO_UNICODE_NFKD",
101    }
102
103    FUNC_TOKENS = (parser.Parser.FUNC_TOKENS - {TokenType.REPLACE}) | {
104        TokenType.BEGIN,
105        TokenType.END,
106        TokenType.MOD,
107    }
108
109    STATEMENT_PARSERS = {
110        **parser.Parser.STATEMENT_PARSERS,
111        TokenType.DATABASE: lambda self: self.expression(
112            exp.Use(this=self._parse_table(schema=False))
113        ),
114        TokenType.EXECUTE: lambda self: self._parse_execute(),
115        TokenType.REPLACE: lambda self: self._parse_create(),
116        TokenType.LOCK: lambda self: self._parse_locking_statement(),
117    }
118
119    def _is_hex_character_string(self) -> bool:
120        return (
121            self._curr.token_type == TokenType.STRING
122            and self._next.token_type == TokenType.VAR
123            and self._next.text.upper() in {"XC", "XCV"}
124            and self._curr.end + 1 == self._next.start
125        )
126
127    def _parse_atom(self) -> exp.Expr | None:
128        if self._is_hex_character_string():
129            return None
130        return super()._parse_atom()
131
132    def _parse_string(self) -> exp.Expr | None:
133        if self._is_hex_character_string():
134            self.raise_error("Hexadecimal character literals are not supported in this context")
135            return None
136        return super()._parse_string()
137
138    def _parse_primary(self) -> exp.Expr | None:
139        if self._is_hex_character_string():
140            token = self._curr
141            if any(char not in "0123456789abcdefABCDEF" for char in token.text):
142                self.raise_error("Invalid hexadecimal character literal", token)
143            self._advance()
144            expression = self.expression(exp.HexString(this=token.text, is_character=True), token)
145            expression.meta["end"] = self._curr.end
146            expression.meta["col"] = self._curr.col
147            self._advance()
148            self._add_comments(expression)
149            return expression
150        primary = super()._parse_primary()
151        if (
152            self._prev.token_type == TokenType.STRING
153            and self._curr.token_type == TokenType.VAR
154            and self._curr.text.upper() in {"XC", "XCV"}
155            and self._is_connected()
156        ):
157            self.raise_error("Adjacent hexadecimal character literals are not supported")
158        return primary
159
160    def _parse_function_call(
161        self,
162        functions: dict[str, t.Callable] | None = None,
163        anonymous: bool = False,
164        optional_parens: bool = True,
165        any_token: bool = False,
166    ) -> exp.Expr | None:
167        expression = super()._parse_function_call(functions, anonymous, optional_parens, any_token)
168        conversion = expression.this if isinstance(expression, exp.Window) else expression
169        if isinstance(conversion, (exp.StrToDate, exp.StrToTime, exp.TsOrDsToDate)):
170            fmt = conversion.args.get("format")
171            if isinstance(fmt, exp.Expr) and any(
172                e.args.get("is_character") for e in fmt.find_all(exp.HexString)
173            ):
174                self.raise_error(
175                    "Hexadecimal character literals are not supported in conversion formats"
176                )
177        return expression
178
179    def _parse_interval_span(
180        self, this: exp.Expr, parse_function_unit: bool = True
181    ) -> exp.Interval:
182        return super()._parse_interval_span(
183            this, parse_function_unit=parse_function_unit and not self._conversion_follows()
184        )
185
186    def _parse_interval(
187        self, require_interval: bool = True, parse_function_unit: bool = True
188    ) -> exp.Add | exp.Interval | None:
189        interval = super()._parse_interval(require_interval, parse_function_unit)
190        if interval and any(e.args.get("is_character") for e in interval.find_all(exp.HexString)):
191            self.raise_error("Hexadecimal character literals are not supported in intervals")
192        return interval
193
194    def _parse_execute(self) -> exp.Execute | exp.Command:
195        start = self._prev
196        this = self._parse_table_parts(schema=True)
197        expressions = []
198
199        if self._match(TokenType.L_PAREN) and not self._match(TokenType.R_PAREN):
200            while True:
201                argument = self._parse_assignment()
202                if argument is None:
203                    # Do not discard omitted arguments or replace them with NULL.
204                    return self._parse_as_command(start)
205                expressions.append(argument)
206                if not self._match(TokenType.COMMA):
207                    break
208            self._match_r_paren()
209
210        if self._curr:
211            # Preserve other EXECUTE forms, such as EXECUTE IMMEDIATE.
212            return self._parse_as_command(start)
213
214        return self.expression(exp.Execute(this=this, expressions=expressions))
215
216    def _parse_locking_statement(self) -> exp.LockingStatement:
217        # Reuse exp.LockingProperty parsing for the lock kind, type etc
218        locking_property = self._parse_locking()
219        wrapped_query = self._parse_select()
220
221        if not wrapped_query:
222            self.raise_error("Expected SELECT statement after LOCKING clause")
223
224        return self.expression(
225            exp.LockingStatement(this=locking_property, expression=wrapped_query)
226        )
227
228    SET_PARSERS = {
229        **parser.Parser.SET_PARSERS,
230        "QUERY_BAND": lambda self: self._parse_query_band(),
231    }
232
233    SET_TRIE = new_trie(key.split(" ") for key in SET_PARSERS)
234
235    FUNCTION_PARSERS = {
236        **parser.Parser.FUNCTION_PARSERS,
237        # https://docs.teradata.com/r/SQL-Functions-Operators-Exprs-and-Predicates/June-2017/Data-Type-Conversions/TRYCAST
238        "TRYCAST": parser.Parser.FUNCTION_PARSERS["TRY_CAST"],
239        "RANGE_N": lambda self: self._parse_rangen(),
240        "TRANSLATE": lambda self: self._parse_translate(),
241    }
242
243    FUNCTIONS = {
244        **parser.Parser.FUNCTIONS,
245        "CARDINALITY": exp.ArraySize.from_arg_list,
246        "CHARACTERS": exp.Length.from_arg_list,
247        "CURDATE": exp.CurrentDate.from_arg_list,
248        "CURTIME": exp.CurrentTime.from_arg_list,
249        "RANDOM": lambda args: exp.Rand(lower=seq_get(args, 0), upper=seq_get(args, 1)),
250        "TRUNC": build_formatted_trunc,
251    }
252
253    EXPONENT = {
254        TokenType.DSTAR: exp.Pow,
255    }
256
257    def _parse_translate(self) -> exp.TranslateCharacters:
258        this = self._parse_assignment()
259        self._match(TokenType.USING)
260        self._match_texts(self.CHARSET_TRANSLATORS)
261
262        return self.expression(
263            exp.TranslateCharacters(
264                this=this,
265                expression=self._prev.text.upper(),
266                with_error=self._match_text_seq("WITH", "ERROR"),
267            )
268        )
269
270    def _parse_delete(self, alias_tokens: t.Collection[TokenType] | None = None) -> exp.Delete:
271        expression = super()._parse_delete(
272            alias_tokens=alias_tokens or self.TABLE_ALIAS_TOKENS - {TokenType.ALL}
273        )
274        if not expression.args.get("where"):
275            self._match(TokenType.ALL)
276        return expression
277
278    def _parse_insert(self) -> exp.Insert | exp.MultitableInserts:
279        expression = super()._parse_insert()
280        target = expression.this
281        if (
282            isinstance(expression, exp.Insert)
283            and not expression.expression
284            and not expression.args.get("default")
285            and not expression.args.get("source")
286            and isinstance(target, exp.Schema)
287            and target.expressions
288            and all(
289                isinstance(value, (exp.Literal, exp.Func, exp.Null)) for value in target.expressions
290            )
291        ):
292            expression.set("this", target.this)
293            expression.set(
294                "expression",
295                self.expression(
296                    exp.Values(expressions=[exp.Tuple(expressions=target.expressions)]),
297                    comments=target.pop_comments(),
298                ),
299            )
300        return expression
301
302    # FROM before SET in Teradata UPDATE syntax
303    # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/Teradata-VantageTM-SQL-Data-Manipulation-Language-17.20/Statement-Syntax/UPDATE/UPDATE-Syntax-Basic-Form-FROM-Clause
304    def _parse_update(self) -> exp.Update:
305        return self.expression(
306            exp.Update(
307                this=self._parse_table(alias_tokens=self.UPDATE_ALIAS_TOKENS),
308                from_=self._parse_from(joins=True),
309                expressions=self._match(TokenType.SET)
310                and self._parse_csv(self._parse_update_assignment),
311                where=self._parse_where(),
312            )
313        )
314
315    def _parse_table_sample(self, as_modifier: bool = False) -> exp.TableSample | None:
316        sample = super()._parse_table_sample(as_modifier=as_modifier)
317
318        # A single integer sample is a row count, while a fraction is a proportion of rows
319        # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Data-Manipulation-Language/SELECT-Statements/SAMPLE-Clause/SAMPLE-Clause-Syntax
320        if sample and len(sample.expressions) == 1 and sample.expressions[0].is_number:
321            num = sample.expressions[0].pop()
322            if num.is_int:
323                sample.set("size", num)
324            else:
325                percent = format(num.to_py().scaleb(2).normalize(), "f")
326                sample.set("percent", exp.Literal.number(percent))
327
328        return sample
329
330    def _parse_rangen(self):
331        this = self._parse_id_var()
332        self._match(TokenType.BETWEEN)
333
334        expressions = self._parse_csv(self._parse_assignment)
335        each = self._match_text_seq("EACH") and self._parse_assignment()
336
337        return self.expression(exp.RangeN(this=this, expressions=expressions, each=each))
338
339    def _parse_query_band(self) -> exp.QueryBand:
340        # Parse: SET QUERY_BAND = 'key=value;key2=value2;' FOR SESSION|TRANSACTION
341        # Also supports: SET QUERY_BAND = 'key=value;' UPDATE FOR SESSION|TRANSACTION
342        # Also supports: SET QUERY_BAND = NONE FOR SESSION|TRANSACTION
343        self._match(TokenType.EQ)
344
345        # Handle both string literals and NONE keyword
346        if self._match_text_seq("NONE"):
347            query_band_string: exp.Expr | None = exp.Var(this="NONE")
348        else:
349            query_band_string = self._parse_string()
350
351        update = self._match_text_seq("UPDATE")
352        self._match_text_seq("FOR")
353
354        # Handle scope - can be SESSION, TRANSACTION, VOLATILE, or SESSION VOLATILE
355        if self._match_text_seq("SESSION", "VOLATILE"):
356            scope = "SESSION VOLATILE"
357        elif self._match_texts(("SESSION", "TRANSACTION")):
358            scope = self._prev.text.upper()
359        else:
360            scope = None
361
362        return self.expression(exp.QueryBand(this=query_band_string, scope=scope, update=update))
363
364    def _parse_index_params(self) -> exp.IndexParameters:
365        this = super()._parse_index_params()
366
367        if this.args.get("on"):
368            this.set("on", None)
369            self._retreat(self._index - 2)
370        return this
371
372    def _parse_table_part(self, schema: bool = False) -> exp.Expr | None:
373        if not schema and self._match_pair(TokenType.TABLE, TokenType.L_PAREN, advance=False):
374            if function := self._try_parse(self._parse_table_function):
375                return function
376        return super()._parse_table_part(schema)
377
378    def _parse_table_function(self) -> exp.TableFromRows | None:
379        # TABLE(db.f(DATE)) requires a function call even when DATE could be a target type.
380        self._advance(2)
381        parts: list[exp.Expr] = []
382        while self._next.token_type == TokenType.DOT:
383            qualifier = self._parse_id_var()
384            if not qualifier or not self._match(TokenType.DOT):
385                return None
386            parts.append(qualifier)
387
388        call = self._parse_function(
389            anonymous=bool(parts) or self._curr.token_type == TokenType.IDENTIFIER,
390            optional_parens=False,
391            any_token=bool(parts),
392        )
393        if not call or not self._match(TokenType.R_PAREN):
394            return None
395        return self.expression(
396            exp.TableFromRows(this=exp.Dot.build([*parts, call]) if parts else call)
397        )
398
399    def _parse_function(
400        self,
401        functions: dict[str, t.Callable] | None = None,
402        anonymous: bool = False,
403        optional_parens: bool = True,
404        any_token: bool = False,
405    ) -> exp.Expr | None:
406        if optional_parens and self._conversion_follows():
407            name = self._curr.text.upper()
408            if self._curr.token_type == TokenType.IDENTIFIER:
409                return None
410            if self._prev.token_type != TokenType.DOT:
411                value = self.NO_PAREN_FUNCTIONS.get(self._curr.token_type)
412                if name == "CURDATE":
413                    value = exp.CurrentDate
414                elif name == "CURTIME":
415                    value = exp.CurrentTime
416                if value:
417                    self._advance()
418                    return self.expression(value())
419                if name == "DATE":
420                    return None
421
422            if self._tokens[self._index + 2].text.upper() in self.CONVERSION_ATTRIBUTES or (
423                name not in (self.FUNCTIONS if functions is None else functions)
424                and name not in self.FUNCTION_PARSERS
425            ):
426                return None
427
428        return super()._parse_function(functions, anonymous, optional_parens, any_token)
429
430    def _conversion_follows(self) -> bool:
431        if self._next.token_type != TokenType.L_PAREN:
432            return False
433        index = self._index
434        self._advance(2)
435        if self._match_texts(self.CONVERSION_ATTRIBUTES, advance=False):
436            # Attribute keywords can also be function names, e.g. f(TITLE(x)).
437            follows = self._next.token_type != TokenType.L_PAREN
438        else:
439            follows = self._match_texts(self.CONVERSION_TYPES, advance=False) and bool(
440                self._try_parse(self._parse_conversion_items)
441            )
442        self._retreat(index)
443        return follows
444
445    def _parse_conversion_type(self) -> exp.Expr | None:
446        index = self._index
447        if self._next.token_type == TokenType.L_PAREN:
448            # _parse_types also accepts expressions for sizes, e.g. DECIMAL(x). In
449            # this ambiguous position only a literal precision, scale or length counts.
450            max_params = self.CONVERSION_TYPES[self._curr.text.upper()]
451            self._advance(2)
452            for _ in range(max_params):
453                if not self._match(TokenType.NUMBER) or not self._prev.text.isdecimal():
454                    return None
455                if self._match(TokenType.R_PAREN):
456                    break
457                if not self._match(TokenType.COMMA):
458                    return None
459            else:
460                return None
461            self._retreat(index)
462
463        return self._parse_types(allow_identifiers=False)
464
465    def _parse_conversion_items(self) -> dict[str, exp.Expr] | None:
466        items: dict[str, exp.Expr] = {}
467        while True:
468            if self._match_texts(self.CONVERSION_ATTRIBUTES):
469                key = self._prev.text.upper()
470                if key == "NAMED":
471                    value = self._parse_id_var(
472                        any_token=False, tokens={TokenType.VAR, TokenType.STRING}
473                    )
474                    if not isinstance(value, exp.Identifier):
475                        return None
476                else:
477                    value = self._parse_string()
478                    if not value or (key == "TITLE" and not value.is_string):
479                        return None
480            elif self._match_texts(self.CONVERSION_TYPES, advance=False):
481                key = "TYPE"
482                value = self._parse_conversion_type()
483                if not isinstance(value, exp.DataType):
484                    return None
485            else:
486                return None
487
488            if key in items:
489                return None
490            items[key] = value
491            if not self._match(TokenType.COMMA):
492                break
493
494        return items if self._match(TokenType.R_PAREN) else None
495
496    def _parse_type(
497        self, parse_interval: bool = True, fallback_to_identifier: bool = False
498    ) -> exp.Expr | None:
499        this = super()._parse_type(parse_interval, fallback_to_identifier)
500        while this and self._match(TokenType.L_PAREN):
501            index = self._index - 1
502            items = self._try_parse(self._parse_conversion_items)
503            if not items:
504                if self._match_texts(self.CONVERSION_ATTRIBUTES, advance=False):
505                    self.raise_error("Invalid Teradata conversion attribute")
506                self._retreat(index)
507                break
508
509            to = items.get("TYPE")
510            fmt = items.get("FORMAT")
511            if to is not None:
512                if fmt or not to.is_type(*exp.DataType.NUMERIC_TYPES):
513                    this = self.expression(exp.TeradataConversion(this=this, to=to, format=fmt))
514                else:
515                    this = self.expression(exp.Cast(this=this, to=to))
516            elif fmt:
517                this = self.expression(exp.FormatPhrase(this=this, format=fmt))
518            if "TITLE" in items:
519                this = self.expression(exp.TeradataTitle(this=this, title=items["TITLE"]))
520            if "NAMED" in items:
521                this = self.expression(exp.TeradataNamed(this=this, alias=items["NAMED"]))
522            this = self._parse_column_ops(this)
523        return this
524
525    def _parse_projections(self) -> tuple[list[exp.Expr], list[exp.Expr] | None]:
526        projections, exclude = super()._parse_projections()
527        for i, projection in enumerate(projections):
528            alias = (
529                projection
530                if isinstance(projection, exp.Alias)
531                and not isinstance(projection, exp.TeradataNamed)
532                else None
533            )
534            this = alias.this if alias else projection
535            node = this
536            named_alias = None
537            while isinstance(node, (exp.FormatPhrase, exp.TeradataTitle, exp.TeradataNamed)):
538                child = node.this
539                if isinstance(node, exp.TeradataNamed):
540                    if alias or named_alias:
541                        child.add_comments(node.args["alias"].pop_comments())
542                    named_alias = named_alias or node.args["alias"]
543                    child.add_comments(node.pop_comments())
544                    if node is this:
545                        this = child
546                    node.replace(child)
547                node = child
548            if named_alias:
549                if alias:
550                    alias.set("this", this)
551                else:
552                    projections[i] = self.expression(exp.Alias(this=this, alias=named_alias))
553        return projections, exclude
554
555    def _parse_window(self, this: exp.Expr | None, alias: bool = False) -> exp.Expr | None:
556        window = super()._parse_window(this, alias)
557
558        # Unlike ANSI, Teradata window aggregates with ORDER BY and no ROWS clause span the whole partition
559        # https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Functions-Expressions-and-Predicates/Ordered-Analytical/Window-Aggregate-Functions/The-Window-Specification/ANSI-Compliance
560        if (
561            isinstance(window, exp.Window)
562            and window.args.get("order")
563            and not window.args.get("spec")
564            and is_window_aggregate(window)
565        ):
566            window.set(
567                "spec",
568                exp.WindowSpec(
569                    kind="ROWS",
570                    start="UNBOUNDED",
571                    start_side="PRECEDING",
572                    end="UNBOUNDED",
573                    end_side="FOLLOWING",
574                ),
575            )
576
577        return window

Parser consumes a list of tokens produced by the Tokenizer and produces a parsed syntax tree.

Arguments:
  • error_level: The desired error level. Default: ErrorLevel.IMMEDIATE
  • error_message_context: The amount of context to capture from a query string when displaying the error message (in number of characters). Default: 100
  • max_errors: Maximum number of error messages to include in a raised ParseError. This is only relevant if error_level is ErrorLevel.RAISE. Default: 3
  • max_nodes: Maximum number of AST nodes to prevent memory exhaustion. Set to -1 (default) to disable the check.
TABLESAMPLE_CSV = True
VALUES_FOLLOWED_BY_PAREN = False
TABLE_ALIAS_TOKENS = {<TokenType.SESSION: 61>, <TokenType.SESSION_USER: 63>, <TokenType.IDENTIFIER: 82>, <TokenType.DATABASE: 83>, <TokenType.COLUMN: 84>, <TokenType.SCHEMA: 86>, <TokenType.TABLE: 87>, <TokenType.WAREHOUSE: 88>, <TokenType.STAGE: 89>, <TokenType.STREAM: 90>, <TokenType.STREAMLIT: 91>, <TokenType.VAR: 92>, <TokenType.BIT: 103>, <TokenType.BOOLEAN: 104>, <TokenType.TINYINT: 105>, <TokenType.UTINYINT: 106>, <TokenType.SMALLINT: 107>, <TokenType.USMALLINT: 108>, <TokenType.MEDIUMINT: 109>, <TokenType.UMEDIUMINT: 110>, <TokenType.INT: 111>, <TokenType.UINT: 112>, <TokenType.BIGINT: 113>, <TokenType.UBIGINT: 114>, <TokenType.BIGNUM: 115>, <TokenType.INT128: 116>, <TokenType.UINT128: 117>, <TokenType.INT256: 118>, <TokenType.UINT256: 119>, <TokenType.FLOAT: 120>, <TokenType.DOUBLE: 121>, <TokenType.UDOUBLE: 122>, <TokenType.DECIMAL: 123>, <TokenType.DECIMAL32: 124>, <TokenType.DECIMAL64: 125>, <TokenType.DECIMAL128: 126>, <TokenType.DECIMAL256: 127>, <TokenType.DECFLOAT: 128>, <TokenType.UDECIMAL: 129>, <TokenType.BIGDECIMAL: 130>, <TokenType.CHAR: 131>, <TokenType.NCHAR: 132>, <TokenType.VARCHAR: 133>, <TokenType.NVARCHAR: 134>, <TokenType.BPCHAR: 135>, <TokenType.TEXT: 136>, <TokenType.MEDIUMTEXT: 137>, <TokenType.LONGTEXT: 138>, <TokenType.BLOB: 139>, <TokenType.MEDIUMBLOB: 140>, <TokenType.LONGBLOB: 141>, <TokenType.TINYBLOB: 142>, <TokenType.TINYTEXT: 143>, <TokenType.NAME: 144>, <TokenType.BINARY: 145>, <TokenType.VARBINARY: 146>, <TokenType.JSON: 147>, <TokenType.JSONB: 148>, <TokenType.TIME: 149>, <TokenType.TIMETZ: 150>, <TokenType.TIME_NS: 151>, <TokenType.TIMESTAMP: 152>, <TokenType.TIMESTAMPTZ: 153>, <TokenType.TIMESTAMPLTZ: 154>, <TokenType.TIMESTAMPNTZ: 155>, <TokenType.TIMESTAMP_S: 156>, <TokenType.TIMESTAMP_MS: 157>, <TokenType.TIMESTAMP_NS: 158>, <TokenType.DATETIME: 159>, <TokenType.DATETIME2: 160>, <TokenType.DATETIME64: 161>, <TokenType.SMALLDATETIME: 162>, <TokenType.DATE: 163>, <TokenType.DATE32: 164>, <TokenType.INT4RANGE: 165>, <TokenType.INT4MULTIRANGE: 166>, <TokenType.INT8RANGE: 167>, <TokenType.INT8MULTIRANGE: 168>, <TokenType.NUMRANGE: 169>, <TokenType.NUMMULTIRANGE: 170>, <TokenType.TSRANGE: 171>, <TokenType.TSMULTIRANGE: 172>, <TokenType.TSTZRANGE: 173>, <TokenType.TSTZMULTIRANGE: 174>, <TokenType.DATERANGE: 175>, <TokenType.DATEMULTIRANGE: 176>, <TokenType.UUID: 177>, <TokenType.GEOGRAPHY: 178>, <TokenType.GEOGRAPHYPOINT: 179>, <TokenType.NULLABLE: 180>, <TokenType.GEOMETRY: 181>, <TokenType.HASHTYPE: 182>, <TokenType.POINT: 183>, <TokenType.RING: 184>, <TokenType.LINESTRING: 185>, <TokenType.LOCALTIME: 186>, <TokenType.LOCALTIMESTAMP: 187>, <TokenType.MULTILINESTRING: 189>, <TokenType.POLYGON: 190>, <TokenType.MULTIPOLYGON: 191>, <TokenType.HLLSKETCH: 192>, <TokenType.HSTORE: 193>, <TokenType.SUPER: 194>, <TokenType.SERIAL: 195>, <TokenType.SMALLSERIAL: 196>, <TokenType.BIGSERIAL: 197>, <TokenType.XML: 198>, <TokenType.YEAR: 199>, <TokenType.USERDEFINED: 200>, <TokenType.MONEY: 201>, <TokenType.SMALLMONEY: 202>, <TokenType.ROWVERSION: 203>, <TokenType.IMAGE: 204>, <TokenType.VARIANT: 205>, <TokenType.OBJECT: 206>, <TokenType.REF: 207>, <TokenType.INET: 208>, <TokenType.IPADDRESS: 209>, <TokenType.IPPREFIX: 210>, <TokenType.IPV4: 211>, <TokenType.IPV6: 212>, <TokenType.ENUM: 213>, <TokenType.ENUM8: 214>, <TokenType.ENUM16: 215>, <TokenType.FIXEDSTRING: 216>, <TokenType.LOWCARDINALITY: 217>, <TokenType.NESTED: 218>, <TokenType.AGGREGATEFUNCTION: 219>, <TokenType.SIMPLEAGGREGATEFUNCTION: 220>, <TokenType.TDIGEST: 221>, <TokenType.UNKNOWN: 222>, <TokenType.VECTOR: 223>, <TokenType.DYNAMIC: 224>, <TokenType.VOID: 225>, <TokenType.ALL: 228>, <TokenType.ANTI: 229>, <TokenType.ANY: 230>, <TokenType.APPLY: 231>, <TokenType.ARRAY: 232>, <TokenType.ASC: 233>, <TokenType.ATTACH: 235>, <TokenType.AUTO_INCREMENT: 236>, <TokenType.BEGIN: 237>, <TokenType.CACHE: 240>, <TokenType.CASE: 241>, <TokenType.COLLATE: 244>, <TokenType.COMMAND: 245>, <TokenType.COMMENT: 246>, <TokenType.COMMIT: 247>, <TokenType.CONNECT: 248>, <TokenType.CONSTRAINT: 250>, <TokenType.COPY: 251>, <TokenType.CUBE: 254>, <TokenType.CURRENT_DATE: 255>, <TokenType.CURRENT_DATETIME: 256>, <TokenType.CURRENT_SCHEMA: 257>, <TokenType.CURRENT_TIME: 258>, <TokenType.CURRENT_TIMESTAMP: 259>, <TokenType.CURRENT_USER: 260>, <TokenType.CURRENT_ROLE: 262>, <TokenType.CURRENT_CATALOG: 263>, <TokenType.DECLARE: 264>, <TokenType.DEFAULT: 265>, <TokenType.DELETE: 266>, <TokenType.DESC: 267>, <TokenType.DESCRIBE: 268>, <TokenType.DETACH: 269>, <TokenType.DISCONNECT: 270>, <TokenType.DICTIONARY: 271>, <TokenType.DIV: 274>, <TokenType.END: 277>, <TokenType.ESCAPE: 278>, <TokenType.EXECUTE: 280>, <TokenType.EXISTS: 281>, <TokenType.FALSE: 282>, <TokenType.FILE: 284>, <TokenType.FILE_FORMAT: 285>, <TokenType.FILTER: 286>, <TokenType.FINAL: 287>, <TokenType.FIRST: 288>, <TokenType.FOREIGN_KEY: 291>, <TokenType.FORMAT: 292>, <TokenType.FUNCTION: 295>, <TokenType.GET: 296>, <TokenType.IN: 306>, <TokenType.INDEX: 307>, <TokenType.INTERVAL: 314>, <TokenType.IS: 318>, <TokenType.ISNULL: 319>, <TokenType.KEEP: 322>, <TokenType.KILL: 324>, <TokenType.LIMIT: 329>, <TokenType.LIST: 330>, <TokenType.LOAD: 331>, <TokenType.MAP: 333>, <TokenType.MATCH: 334>, <TokenType.MERGE: 338>, <TokenType.MODEL: 340>, <TokenType.NEXT: 342>, <TokenType.NOTHING: 343>, <TokenType.NULL: 345>, <TokenType.OBJECT_IDENTIFIER: 346>, <TokenType.OFFSET: 347>, <TokenType.OPERATOR: 350>, <TokenType.ORDINALITY: 354>, <TokenType.OUT: 355>, <TokenType.INOUT: 356>, <TokenType.OVER: 358>, <TokenType.OVERLAPS: 359>, <TokenType.OVERWRITE: 360>, <TokenType.PARTITION: 362>, <TokenType.PASTE: 364>, <TokenType.PERCENT: 365>, <TokenType.PIVOT: 366>, <TokenType.PRAGMA: 371>, <TokenType.PROCEDURE: 374>, <TokenType.PROJECTION: 376>, <TokenType.PSEUDO_TYPE: 377>, <TokenType.PUT: 378>, <TokenType.RANGE: 382>, <TokenType.RECURSIVE: 383>, <TokenType.REFRESH: 384>, <TokenType.RENAME: 385>, <TokenType.REPLACE: 386>, <TokenType.REFERENCES: 389>, <TokenType.ROLLUP: 394>, <TokenType.ROW: 395>, <TokenType.ROWS: 396>, <TokenType.SEMI: 399>, <TokenType.SEQUENCE: 401>, <TokenType.SET: 403>, <TokenType.SETTINGS: 404>, <TokenType.SHOW: 405>, <TokenType.SOME: 407>, <TokenType.STORAGE_INTEGRATION: 412>, <TokenType.STRAIGHT_JOIN: 413>, <TokenType.STRUCT: 414>, <TokenType.TAG: 417>, <TokenType.TEMPORARY: 418>, <TokenType.TOP: 419>, <TokenType.TRUE: 421>, <TokenType.TRUNCATE: 422>, <TokenType.TRIGGER: 423>, <TokenType.TYPE: 424>, <TokenType.UNNEST: 428>, <TokenType.UNPIVOT: 429>, <TokenType.UPDATE: 430>, <TokenType.USE: 431>, <TokenType.VIEW: 435>, <TokenType.SEMANTIC_VIEW: 436>, <TokenType.VOLATILE: 437>, <TokenType.UNIQUE: 443>, <TokenType.SINK: 448>, <TokenType.SOURCE: 449>, <TokenType.ANALYZE: 450>, <TokenType.OPTIMIZE: 451>, <TokenType.NAMESPACE: 452>, <TokenType.EXPORT: 453>}
CONVERSION_TYPES: ClassVar = {'BYTEINT': 0, 'SMALLINT': 0, 'INT': 0, 'INTEGER': 0, 'BIGINT': 0, 'DEC': 2, 'DECIMAL': 2, 'NUMERIC': 2, 'FLOAT': 1, 'REAL': 0, 'DOUBLE PRECISION': 0, 'CHAR': 1, 'CHARACTER': 1, 'VARCHAR': 1, 'CHAR VARYING': 1, 'CHARACTER VARYING': 1, 'DATE': 0, 'TIME': 1, 'TIMESTAMP': 1, 'INTERVAL': 0}
CONVERSION_ATTRIBUTES = {'TITLE', 'FORMAT', 'NAMED'}
CHARSET_TRANSLATORS: ClassVar = {'UNICODE_TO_UNICODE_NFKD', 'LATIN_TO_UNICODE', 'LATIN_TO_KANJISJIS', 'UNICODE_TO_LATIN', 'KANJI1_KanjiEBCDIC_TO_UNICODE', 'UNICODE_TO_LOCALE', 'UNICODE_TO_KANJI1_KanjiEUC', 'UNICODE_TO_UNICODE_FoldSpace', 'LOCALE_TO_UNICODE', 'UNICODE_TO_UNICODE_Halfwidth', 'UNICODE_TO_GRAPHIC_VarGraphic', 'UNICODE_TO_GRAPHIC_PadGraphic', 'UNICODE_TO_KANJISJIS', 'KANJISJIS_TO_LATIN', 'UNICODE_TO_KANJI1_KanjiEBCDIC', 'KANJISJIS_TO_UNICODE', 'KANJI1_SBC_TO_UNICODE', 'KANJISJIS_TO_GRAPHIC', 'GRAPHIC_TO_LATIN', 'LATIN_TO_GRAPHIC', 'UNICODE_TO_UNICODE_NFKC', 'UNICODE_TO_GRAPHIC', 'UNICODE_TO_KANJI1_KANJISJIS', 'UNICODE_TO_UNICODE_Fullwidth', 'UNICODE_TO_UNICODE_NFC', 'UNICODE_TO_KANJI1_SBC', 'GRAPHIC_TO_UNICODE', 'KANJI1_KanjiEUC_TO_UNICODE', 'KANJI1_KANJISJIS_TO_UNICODE', 'GRAPHIC_TO_KANJISJIS', 'GRAPHIC_TO_UNICODE_PadSpace', 'UNICODE_TO_UNICODE_NFD'}
FUNC_TOKENS = {<TokenType.SESSION_USER: 63>, <TokenType.XOR: 68>, <TokenType.IDENTIFIER: 82>, <TokenType.TABLE: 87>, <TokenType.VAR: 92>, <TokenType.BIT: 103>, <TokenType.BOOLEAN: 104>, <TokenType.TINYINT: 105>, <TokenType.UTINYINT: 106>, <TokenType.SMALLINT: 107>, <TokenType.USMALLINT: 108>, <TokenType.MEDIUMINT: 109>, <TokenType.UMEDIUMINT: 110>, <TokenType.INT: 111>, <TokenType.UINT: 112>, <TokenType.BIGINT: 113>, <TokenType.UBIGINT: 114>, <TokenType.BIGNUM: 115>, <TokenType.INT128: 116>, <TokenType.UINT128: 117>, <TokenType.INT256: 118>, <TokenType.UINT256: 119>, <TokenType.FLOAT: 120>, <TokenType.DOUBLE: 121>, <TokenType.UDOUBLE: 122>, <TokenType.DECIMAL: 123>, <TokenType.DECIMAL32: 124>, <TokenType.DECIMAL64: 125>, <TokenType.DECIMAL128: 126>, <TokenType.DECIMAL256: 127>, <TokenType.DECFLOAT: 128>, <TokenType.UDECIMAL: 129>, <TokenType.BIGDECIMAL: 130>, <TokenType.CHAR: 131>, <TokenType.NCHAR: 132>, <TokenType.VARCHAR: 133>, <TokenType.NVARCHAR: 134>, <TokenType.BPCHAR: 135>, <TokenType.TEXT: 136>, <TokenType.MEDIUMTEXT: 137>, <TokenType.LONGTEXT: 138>, <TokenType.BLOB: 139>, <TokenType.MEDIUMBLOB: 140>, <TokenType.LONGBLOB: 141>, <TokenType.TINYBLOB: 142>, <TokenType.TINYTEXT: 143>, <TokenType.NAME: 144>, <TokenType.BINARY: 145>, <TokenType.VARBINARY: 146>, <TokenType.JSON: 147>, <TokenType.JSONB: 148>, <TokenType.TIME: 149>, <TokenType.TIMETZ: 150>, <TokenType.TIME_NS: 151>, <TokenType.TIMESTAMP: 152>, <TokenType.TIMESTAMPTZ: 153>, <TokenType.TIMESTAMPLTZ: 154>, <TokenType.TIMESTAMPNTZ: 155>, <TokenType.TIMESTAMP_S: 156>, <TokenType.TIMESTAMP_MS: 157>, <TokenType.TIMESTAMP_NS: 158>, <TokenType.DATETIME: 159>, <TokenType.DATETIME2: 160>, <TokenType.DATETIME64: 161>, <TokenType.SMALLDATETIME: 162>, <TokenType.DATE: 163>, <TokenType.DATE32: 164>, <TokenType.INT4RANGE: 165>, <TokenType.INT4MULTIRANGE: 166>, <TokenType.INT8RANGE: 167>, <TokenType.INT8MULTIRANGE: 168>, <TokenType.NUMRANGE: 169>, <TokenType.NUMMULTIRANGE: 170>, <TokenType.TSRANGE: 171>, <TokenType.TSMULTIRANGE: 172>, <TokenType.TSTZRANGE: 173>, <TokenType.TSTZMULTIRANGE: 174>, <TokenType.DATERANGE: 175>, <TokenType.DATEMULTIRANGE: 176>, <TokenType.UUID: 177>, <TokenType.GEOGRAPHY: 178>, <TokenType.GEOGRAPHYPOINT: 179>, <TokenType.NULLABLE: 180>, <TokenType.GEOMETRY: 181>, <TokenType.HASHTYPE: 182>, <TokenType.POINT: 183>, <TokenType.RING: 184>, <TokenType.LINESTRING: 185>, <TokenType.LOCALTIME: 186>, <TokenType.LOCALTIMESTAMP: 187>, <TokenType.MULTILINESTRING: 189>, <TokenType.POLYGON: 190>, <TokenType.MULTIPOLYGON: 191>, <TokenType.HLLSKETCH: 192>, <TokenType.HSTORE: 193>, <TokenType.SUPER: 194>, <TokenType.SERIAL: 195>, <TokenType.SMALLSERIAL: 196>, <TokenType.BIGSERIAL: 197>, <TokenType.XML: 198>, <TokenType.YEAR: 199>, <TokenType.USERDEFINED: 200>, <TokenType.MONEY: 201>, <TokenType.SMALLMONEY: 202>, <TokenType.ROWVERSION: 203>, <TokenType.IMAGE: 204>, <TokenType.VARIANT: 205>, <TokenType.OBJECT: 206>, <TokenType.REF: 207>, <TokenType.INET: 208>, <TokenType.IPADDRESS: 209>, <TokenType.IPPREFIX: 210>, <TokenType.IPV4: 211>, <TokenType.IPV6: 212>, <TokenType.ENUM: 213>, <TokenType.ENUM8: 214>, <TokenType.ENUM16: 215>, <TokenType.FIXEDSTRING: 216>, <TokenType.LOWCARDINALITY: 217>, <TokenType.NESTED: 218>, <TokenType.AGGREGATEFUNCTION: 219>, <TokenType.SIMPLEAGGREGATEFUNCTION: 220>, <TokenType.TDIGEST: 221>, <TokenType.UNKNOWN: 222>, <TokenType.VECTOR: 223>, <TokenType.DYNAMIC: 224>, <TokenType.VOID: 225>, <TokenType.ALL: 228>, <TokenType.ANY: 230>, <TokenType.ARRAY: 232>, <TokenType.BEGIN: 237>, <TokenType.COLLATE: 244>, <TokenType.COMMAND: 245>, <TokenType.CURRENT_DATE: 255>, <TokenType.CURRENT_DATETIME: 256>, <TokenType.CURRENT_SCHEMA: 257>, <TokenType.CURRENT_TIME: 258>, <TokenType.CURRENT_TIMESTAMP: 259>, <TokenType.CURRENT_USER: 260>, <TokenType.CURRENT_CATALOG: 263>, <TokenType.DECLARE: 264>, <TokenType.END: 277>, <TokenType.EXISTS: 281>, <TokenType.FILTER: 286>, <TokenType.FIRST: 288>, <TokenType.FORMAT: 292>, <TokenType.GET: 296>, <TokenType.GLOB: 297>, <TokenType.ILIKE: 305>, <TokenType.INDEX: 307>, <TokenType.INSERT: 310>, <TokenType.INTERVAL: 314>, <TokenType.ISNULL: 319>, <TokenType.LEFT: 327>, <TokenType.LIKE: 328>, <TokenType.LIST: 330>, <TokenType.MAP: 333>, <TokenType.MERGE: 338>, <TokenType.MOD: 339>, <TokenType.NEXT: 342>, <TokenType.NOTHING: 343>, <TokenType.NULL: 345>, <TokenType.OBJECT_IDENTIFIER: 346>, <TokenType.OFFSET: 347>, <TokenType.PRIMARY_KEY: 373>, <TokenType.PSEUDO_TYPE: 377>, <TokenType.RANGE: 382>, <TokenType.RIGHT: 390>, <TokenType.RLIKE: 391>, <TokenType.ROW: 395>, <TokenType.SEQUENCE: 401>, <TokenType.SOME: 407>, <TokenType.STRUCT: 414>, <TokenType.TRUNCATE: 422>, <TokenType.UNION: 427>, <TokenType.UNNEST: 428>, <TokenType.WINDOW: 441>, <TokenType.UTC_DATE: 444>, <TokenType.UTC_TIME: 445>, <TokenType.UTC_TIMESTAMP: 446>, <TokenType.OPTIMIZE: 451>}
STATEMENT_PARSERS = {<TokenType.ALTER: 227>: <function Parser.<lambda>>, <TokenType.ANALYZE: 450>: <function Parser.<lambda>>, <TokenType.BEGIN: 237>: <function Parser.<lambda>>, <TokenType.CACHE: 240>: <function Parser.<lambda>>, <TokenType.COMMENT: 246>: <function Parser.<lambda>>, <TokenType.COMMIT: 247>: <function Parser.<lambda>>, <TokenType.COPY: 251>: <function Parser.<lambda>>, <TokenType.CREATE: 252>: <function Parser.<lambda>>, <TokenType.DECLARE: 264>: <function Parser.<lambda>>, <TokenType.DELETE: 266>: <function Parser.<lambda>>, <TokenType.DESC: 267>: <function Parser.<lambda>>, <TokenType.DESCRIBE: 268>: <function Parser.<lambda>>, <TokenType.DROP: 275>: <function Parser.<lambda>>, <TokenType.GRANT: 299>: <function Parser.<lambda>>, <TokenType.REVOKE: 388>: <function Parser.<lambda>>, <TokenType.INSERT: 310>: <function Parser.<lambda>>, <TokenType.KILL: 324>: <function Parser.<lambda>>, <TokenType.LOAD: 331>: <function Parser.<lambda>>, <TokenType.MERGE: 338>: <function Parser.<lambda>>, <TokenType.PIVOT: 366>: <function Parser.<lambda>>, <TokenType.PRAGMA: 371>: <function Parser.<lambda>>, <TokenType.REFRESH: 384>: <function Parser.<lambda>>, <TokenType.ROLLBACK: 393>: <function Parser.<lambda>>, <TokenType.SET: 403>: <function Parser.<lambda>>, <TokenType.TRUNCATE: 422>: <function Parser.<lambda>>, <TokenType.UNCACHE: 425>: <function Parser.<lambda>>, <TokenType.UNPIVOT: 429>: <function Parser.<lambda>>, <TokenType.UPDATE: 430>: <function Parser.<lambda>>, <TokenType.USE: 431>: <function Parser.<lambda>>, <TokenType.SEMICOLON: 19>: <function Parser.<lambda>>, <TokenType.DATABASE: 83>: <function TeradataParser.<lambda>>, <TokenType.EXECUTE: 280>: <function TeradataParser.<lambda>>, <TokenType.REPLACE: 386>: <function TeradataParser.<lambda>>, <TokenType.LOCK: 332>: <function TeradataParser.<lambda>>}
SET_PARSERS = {'GLOBAL': <function Parser.<lambda>>, 'LOCAL': <function Parser.<lambda>>, 'SESSION': <function Parser.<lambda>>, 'TRANSACTION': <function Parser.<lambda>>, 'QUERY_BAND': <function TeradataParser.<lambda>>}
SET_TRIE = {'GLOBAL': {0: True}, 'LOCAL': {0: True}, 'SESSION': {0: True}, 'TRANSACTION': {0: True}, 'QUERY_BAND': {0: True}}
FUNCTION_PARSERS = {'ARG_MAX': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'ARGMAX': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'MAX_BY': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'ARG_MIN': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'ARGMIN': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'MIN_BY': <function parse_distinct_arg_functions.<locals>.<dictcomp>.<lambda>>, 'CAST': <function Parser.<lambda>>, 'CEIL': <function Parser.<lambda>>, 'CONVERT': <function Parser.<lambda>>, 'CHAR': <function Parser.<lambda>>, 'CHR': <function Parser.<lambda>>, 'DECODE': <function Parser.<lambda>>, 'EXTRACT': <function Parser.<lambda>>, 'FLOOR': <function Parser.<lambda>>, 'GAP_FILL': <function Parser.<lambda>>, 'INITCAP': <function Parser.<lambda>>, 'JSON_OBJECT': <function Parser.<lambda>>, 'JSON_OBJECTAGG': <function Parser.<lambda>>, 'JSON_TABLE': <function Parser.<lambda>>, 'MATCH': <function Parser.<lambda>>, 'NORMALIZE': <function Parser.<lambda>>, 'OPENJSON': <function Parser.<lambda>>, 'OVERLAY': <function Parser.<lambda>>, 'POSITION': <function Parser.<lambda>>, 'SAFE_CAST': <function Parser.<lambda>>, 'STRING_AGG': <function Parser.<lambda>>, 'SUBSTRING': <function Parser.<lambda>>, 'TRIM': <function Parser.<lambda>>, 'TRY_CAST': <function Parser.<lambda>>, 'TRY_CONVERT': <function Parser.<lambda>>, 'WEIGHT_STRING': <function Parser.<lambda>>, 'XMLELEMENT': <function Parser.<lambda>>, 'XMLTABLE': <function Parser.<lambda>>, 'TRYCAST': <function Parser.<lambda>>, 'RANGE_N': <function TeradataParser.<lambda>>, 'TRANSLATE': <function TeradataParser.<lambda>>}
FUNCTIONS = {'AI_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.AIAgg'>>, 'AI_CLASSIFY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.AIClassify'>>, 'AI_EMBED': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.AIEmbed'>>, 'A_I_FORECAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.AIForecast'>>, 'AI_GENERATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.AIGenerate'>>, 'AI_SIMILARITY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.AISimilarity'>>, 'AI_SUMMARIZE_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.AISummarizeAgg'>>, 'ABS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Abs'>>, 'ACOS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Acos'>>, 'ACOSH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Acosh'>>, 'ADD_MONTHS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.AddMonths'>>, 'AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Agg'>>, 'AND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.And'>>, 'ANONYMOUS_AGG_FUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.AnonymousAggFunc'>>, 'ANY_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.AnyValue'>>, 'APPLY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Apply'>>, 'APPROX_DISTINCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.ApproxDistinct'>>, 'APPROX_COUNT_DISTINCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.ApproxDistinct'>>, 'APPROX_PERCENTILE_ACCUMULATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxPercentileAccumulate'>>, 'APPROX_PERCENTILE_COMBINE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxPercentileCombine'>>, 'APPROX_PERCENTILE_ESTIMATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxPercentileEstimate'>>, 'APPROX_QUANTILE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxQuantile'>>, 'APPROX_QUANTILES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxQuantiles'>>, 'APPROX_TOP_K': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxTopK'>>, 'APPROX_TOP_K_ACCUMULATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxTopKAccumulate'>>, 'APPROX_TOP_K_COMBINE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxTopKCombine'>>, 'APPROX_TOP_K_ESTIMATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxTopKEstimate'>>, 'APPROX_TOP_SUM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproxTopSum'>>, 'APPROXIMATE_SIMILARITY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproximateSimilarity'>>, 'APPROXIMATE_JACCARD_INDEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ApproximateSimilarity'>>, 'ARG_MAX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMax'>>, 'ARGMAX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMax'>>, 'MAX_BY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMax'>>, 'ARG_MIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMin'>>, 'ARGMIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMin'>>, 'MIN_BY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArgMin'>>, 'ARRAY': <function Parser.<lambda>>, 'ARRAY_AGG': <function Parser.<lambda>>, 'ARRAY_ALL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayAll'>>, 'ARRAY_ANY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayAny'>>, 'ARRAY_APPEND': <function build_array_append>, 'ARRAY_COMPACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayCompact'>>, 'ARRAY_CONCAT': <function build_array_concat>, 'ARRAY_CAT': <function build_array_concat>, 'ARRAY_CONCAT_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArrayConcatAgg'>>, 'ARRAY_CONSTRUCT_COMPACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayConstructCompact'>>, 'ARRAY_CONTAINED_BY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContainedBy'>>, 'ARRAY_CONTAINS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContains'>>, 'ARRAY_HAS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContains'>>, 'ARRAY_CONTAINS_ALL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContainsAll'>>, 'ARRAY_HAS_ALL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContainsAll'>>, 'ARRAY_DISTINCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayDistinct'>>, 'ARRAY_EXCEPT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayExcept'>>, 'FILTER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayFilter'>>, 'ARRAY_FILTER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayFilter'>>, 'ARRAY_FIRST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayFirst'>>, 'ARRAY_INSERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayInsert'>>, 'ARRAY_INTERSECT': <function Parser.<lambda>>, 'ARRAY_INTERSECTION': <function Parser.<lambda>>, 'ARRAY_LAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayLast'>>, 'ARRAY_MAX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayMax'>>, 'ARRAY_MIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayMin'>>, 'ARRAY_OVERLAPS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayOverlaps'>>, 'ARRAY_POSITION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayPosition'>>, 'ARRAY_PREPEND': <function build_array_prepend>, 'ARRAY_REMOVE': <function build_array_remove>, 'ARRAY_REMOVE_AT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayRemoveAt'>>, 'ARRAY_REVERSE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayReverse'>>, 'ARRAY_SIZE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySize'>>, 'ARRAY_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySize'>>, 'ARRAY_SLICE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySlice'>>, 'ARRAY_SORT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySort'>>, 'ARRAY_SUM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySum'>>, 'ARRAY_TO_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayToString'>>, 'ARRAY_JOIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayToString'>>, 'ARRAY_UNION_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArrayUnionAgg'>>, 'ARRAY_UNIQUE_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ArrayUniqueAgg'>>, 'ARRAYS_ZIP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraysZip'>>, 'ASCII': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Ascii'>>, 'ASIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Asin'>>, 'ASINH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Asinh'>>, 'ATAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Atan'>>, 'ATAN2': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Atan2'>>, 'ATANH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Atanh'>>, 'AVG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Avg'>>, 'BASE64_DECODE_BINARY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Base64DecodeBinary'>>, 'BASE64_DECODE_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Base64DecodeString'>>, 'BASE64_ENCODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Base64Encode'>>, 'BIT_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.BitLength'>>, 'BITMAP_BIT_POSITION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitmapBitPosition'>>, 'BITMAP_BUCKET_NUMBER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitmapBucketNumber'>>, 'BITMAP_CONSTRUCT_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitmapConstructAgg'>>, 'BITMAP_COUNT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitmapCount'>>, 'BITMAP_OR_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitmapOrAgg'>>, 'BITWISE_AND_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseAndAgg'>>, 'BITWISE_COUNT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseCount'>>, 'BITWISE_OR_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseOrAgg'>>, 'BITWISE_XOR_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseXorAgg'>>, 'BOOLAND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Booland'>>, 'BOOLNOT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Boolnot'>>, 'BOOLOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Boolor'>>, 'BOOLXOR_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BoolxorAgg'>>, 'BYTE_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ByteLength'>>, 'CASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Case'>>, 'CAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Cast'>>, 'CAST_TO_STR_TYPE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CastToStrType'>>, 'CBRT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Cbrt'>>, 'CEIL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Ceil'>>, 'CEILING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Ceil'>>, 'CHECK_JSON': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.CheckJson'>>, 'CHECK_XML': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CheckXml'>>, 'CHR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Chr'>>, 'CHAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Chr'>>, 'CITY_HASH64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.CityHash64'>>, 'COALESCE': <function build_coalesce>, 'IFNULL': <function build_coalesce>, 'NVL': <function build_coalesce>, 'CODE_POINTS_TO_BYTES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.CodePointsToBytes'>>, 'CODE_POINTS_TO_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.CodePointsToString'>>, 'COLLATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Collate'>>, 'COLLATION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Collation'>>, 'COLUMNS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Columns'>>, 'COMBINED_AGG_FUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.CombinedAggFunc'>>, 'COMBINED_PARAMETERIZED_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.CombinedParameterizedAgg'>>, 'COMPRESS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Compress'>>, 'CONCAT': <function Parser.<lambda>>, 'CONCAT_WS': <function Parser.<lambda>>, 'CONNECT_BY_ROOT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ConnectByRoot'>>, 'CONTAINS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Contains'>>, 'CONVERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Convert'>>, 'CONVERT_TIMEZONE': <function build_convert_timezone>, 'CONVERT_TO_CHARSET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ConvertToCharset'>>, 'CORR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Corr'>>, 'COS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Cos'>>, 'COSH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Cosh'>>, 'COSINE_DISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.CosineDistance'>>, 'COT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Cot'>>, 'COTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Coth'>>, 'COUNT': <function Parser.<lambda>>, 'COUNT_IF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.CountIf'>>, 'COUNTIF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.CountIf'>>, 'COVAR_POP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.CovarPop'>>, 'COVAR_SAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.CovarSamp'>>, 'CSC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Csc'>>, 'CSCH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Csch'>>, 'CUME_DIST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.CumeDist'>>, 'CURRENT_ACCOUNT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentAccount'>>, 'CURRENT_ACCOUNT_NAME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentAccountName'>>, 'CURRENT_AVAILABLE_ROLES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentAvailableRoles'>>, 'CURRENT_CATALOG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentCatalog'>>, 'CURRENT_CLIENT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentClient'>>, 'CURRENT_DATABASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentDatabase'>>, 'CURRENT_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentDate'>>, 'CURRENT_DATETIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentDatetime'>>, 'CURRENT_IP_ADDRESS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentIpAddress'>>, 'CURRENT_ORGANIZATION_NAME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentOrganizationName'>>, 'CURRENT_ORGANIZATION_USER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentOrganizationUser'>>, 'CURRENT_PATH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentPath'>>, 'CURRENT_REGION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentRegion'>>, 'CURRENT_ROLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentRole'>>, 'CURRENT_ROLE_TYPE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentRoleType'>>, 'CURRENT_SCHEMA': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentSchema'>>, 'CURRENT_SCHEMAS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentSchemas'>>, 'CURRENT_SECONDARY_ROLES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentSecondaryRoles'>>, 'CURRENT_SESSION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentSession'>>, 'CURRENT_STATEMENT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentStatement'>>, 'CURRENT_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentTime'>>, 'CURRENT_TIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentTimestamp'>>, 'CURRENT_TIMESTAMP_L_T_Z': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentTimestampLTZ'>>, 'CURRENT_TIMEZONE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentTimezone'>>, 'CURRENT_TRANSACTION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentTransaction'>>, 'CURRENT_USER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentUser'>>, 'CURRENT_USER_ID': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentUserId'>>, 'CURRENT_VERSION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentVersion'>>, 'CURRENT_WAREHOUSE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentWarehouse'>>, 'DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Date'>>, 'DATE_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateAdd'>>, 'DATE_BIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateBin'>>, 'DATEDIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateDiff'>>, 'DATE_DIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateDiff'>>, 'DATE_FROM_PARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateFromParts'>>, 'DATEFROMPARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateFromParts'>>, 'DATE_FROM_UNIX_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateFromUnixDate'>>, 'DATE_STR_TO_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateStrToDate'>>, 'DATE_SUB': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateSub'>>, 'DATE_TO_DATE_STR': <function Parser.<lambda>>, 'DATE_TO_DI': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateToDi'>>, 'DATE_TRUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateTrunc'>>, 'DATETIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Datetime'>>, 'DATETIME_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DatetimeAdd'>>, 'DATETIME_DIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DatetimeDiff'>>, 'DATETIME_SUB': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DatetimeSub'>>, 'DATETIME_TRUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DatetimeTrunc'>>, 'DAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Day'>>, 'DAY_OF_MONTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfMonth'>>, 'DAYOFMONTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfMonth'>>, 'DAY_OF_WEEK': <function Parser.<lambda>>, 'DAYOFWEEK': <function Parser.<lambda>>, 'DAYOFWEEK_ISO': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfWeekIso'>>, 'ISODOW': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfWeekIso'>>, 'DAY_OF_YEAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfYear'>>, 'DAYOFYEAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DayOfYear'>>, 'DAYNAME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Dayname'>>, 'DECODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Decode'>>, 'DECODE_CASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.DecodeCase'>>, 'DECOMPRESS_BINARY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.DecompressBinary'>>, 'DECOMPRESS_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.DecompressString'>>, 'DECRYPT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Decrypt'>>, 'DECRYPT_RAW': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.DecryptRaw'>>, 'DEGREES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Degrees'>>, 'DENSE_RANK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.DenseRank'>>, 'DI_TO_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DiToDate'>>, 'DOT_PRODUCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.DotProduct'>>, 'DYNAMIC_IDENTIFIER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.DynamicIdentifier'>>, 'ELT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Elt'>>, 'ENCODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Encode'>>, 'ENCRYPT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Encrypt'>>, 'ENCRYPT_RAW': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.EncryptRaw'>>, 'ENDS_WITH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.EndsWith'>>, 'ENDSWITH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.EndsWith'>>, 'EQUAL_NULL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.EqualNull'>>, 'EUCLIDEAN_DISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.EuclideanDistance'>>, 'EXISTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Exists'>>, 'EXP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Exp'>>, 'EXPLODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Explode'>>, 'EXPLODING_GENERATE_SERIES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ExplodingGenerateSeries'>>, 'EXTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Extract'>>, 'FACTORIAL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Factorial'>>, 'FARM_FINGERPRINT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FarmFingerprint'>>, 'FARMFINGERPRINT64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FarmFingerprint'>>, 'FEATURES_AT_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.FeaturesAtTime'>>, 'FIND_IN_SET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FindInSet'>>, 'FIRST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.First'>>, 'FIRST_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.FirstValue'>>, 'FLATTEN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Flatten'>>, 'FLOAT64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Float64'>>, 'FLOOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Floor'>>, 'FORMAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Format'>>, 'FROM_BASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FromBase'>>, 'FROM_BASE32': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FromBase32'>>, 'FROM_BASE64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.FromBase64'>>, 'FROM_ISO8601_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.FromISO8601Date'>>, 'FROM_ISO8601_TIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.FromISO8601Timestamp'>>, 'FROM_ISO8601_TIMESTAMP_NANOS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.FromISO8601TimestampNanos'>>, 'FROM_JSON': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.FromJson'>>, 'GAP_FILL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.GapFill'>>, 'GENERATE_BOOL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateBool'>>, 'GENERATE_DATE_ARRAY': <function Parser.<lambda>>, 'GENERATE_DOUBLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateDouble'>>, 'GENERATE_EMBEDDING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateEmbedding'>>, 'GENERATE_INT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateInt'>>, 'GENERATE_SERIES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.GenerateSeries'>>, 'GENERATE_TABLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateTable'>>, 'GENERATE_TEXT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GenerateText'>>, 'GENERATE_TIMESTAMP_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.GenerateTimestampArray'>>, 'GENERATOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Generator'>>, 'GET_EXTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.GetExtract'>>, 'GET_IGNORE_CASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.GetIgnoreCase'>>, 'GETBIT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Getbit'>>, 'GET_BIT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Getbit'>>, 'GREATEST': <function Parser.<lambda>>, 'GROUP_CONCAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.GroupConcat'>>, 'GROUPING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Grouping'>>, 'GROUPING_ID': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.GroupingId'>>, 'HASH_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.HashAgg'>>, 'HEX': <function build_hex>, 'HEX_DECODE_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.HexDecodeString'>>, 'HLL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Hll'>>, 'HOST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Host'>>, 'HOUR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Hour'>>, 'IF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.If'>>, 'IIF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.If'>>, 'INITCAP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Initcap'>>, 'INLINE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Inline'>>, 'INT64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Int64'>>, 'IS_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.IsArray'>>, 'IS_ASCII': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.IsAscii'>>, 'IS_INF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.IsInf'>>, 'ISINF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.IsInf'>>, 'IS_NAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.IsNan'>>, 'ISNAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.IsNan'>>, 'IS_NULL_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.IsNullValue'>>, 'J_S_O_N_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONArray'>>, 'J_S_O_N_ARRAY_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONArrayAgg'>>, 'JSON_ARRAY_APPEND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONArrayAppend'>>, 'JSON_ARRAY_CONTAINS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONArrayContains'>>, 'JSON_ARRAY_INSERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONArrayInsert'>>, 'JSONB_CONTAINS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBContains'>>, 'J_S_O_N_B_CONTAINS_ALL_TOP_KEYS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBContainsAllTopKeys'>>, 'J_S_O_N_B_CONTAINS_ANY_TOP_KEYS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBContainsAnyTopKeys'>>, 'J_S_O_N_B_CONTAINS_TOP_KEY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBContainsTopKey'>>, 'J_S_O_N_B_DELETE_AT_PATH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBDeleteAtPath'>>, 'JSONB_EXISTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBExists'>>, 'JSONB_EXTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBExtract'>>, 'JSONB_EXTRACT_SCALAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBExtractScalar'>>, 'J_S_O_N_B_OBJECT_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBObjectAgg'>>, 'J_S_O_N_B_PATH_EXISTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBPathExists'>>, 'J_S_O_N_BOOL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONBool'>>, 'J_S_O_N_CAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.JSONCast'>>, 'J_S_O_N_EXISTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONExists'>>, 'JSON_EXTRACT': <function build_extract_json_with_path.<locals>._builder>, 'JSON_EXTRACT_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONExtractArray'>>, 'JSON_EXTRACT_SCALAR': <function build_extract_json_with_path.<locals>._builder>, 'JSON_FORMAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONFormat'>>, 'JSON_KEYS': <function Parser.<lambda>>, 'J_S_O_N_KEYS_AT_DEPTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONKeysAtDepth'>>, 'J_S_O_N_OBJECT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONObject'>>, 'J_S_O_N_OBJECT_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONObjectAgg'>>, 'JSON_REMOVE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONRemove'>>, 'JSON_SET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONSet'>>, 'JSON_STRIP_NULLS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONStripNulls'>>, 'J_S_O_N_TABLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONTable'>>, 'JSON_TYPE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.JSONType'>>, 'J_S_O_N_VALUE_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.query.JSONValueArray'>>, 'JAROWINKLER_SIMILARITY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.JarowinklerSimilarity'>>, 'JUSTIFY_DAYS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.JustifyDays'>>, 'JUSTIFY_HOURS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.JustifyHours'>>, 'JUSTIFY_INTERVAL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.JustifyInterval'>>, 'KURTOSIS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Kurtosis'>>, 'LAG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Lag'>>, 'LAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Last'>>, 'LAST_DAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.LastDay'>>, 'LAST_DAY_OF_MONTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.LastDay'>>, 'LAST_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LastValue'>>, 'LAX_BOOL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.LaxBool'>>, 'LAX_FLOAT64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.LaxFloat64'>>, 'LAX_INT64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.LaxInt64'>>, 'LAX_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.LaxString'>>, 'LEAD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Lead'>>, 'LEAST': <function Parser.<lambda>>, 'LEFT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Left'>>, 'LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Length'>>, 'LEN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Length'>>, 'CHAR_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Length'>>, 'CHARACTER_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Length'>>, 'LEVENSHTEIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Levenshtein'>>, 'LIST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.List'>>, 'LN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Ln'>>, 'LOCALTIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Localtime'>>, 'LOCALTIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Localtimestamp'>>, 'LOG': <function build_logarithm>, 'LOGICAL_AND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalAnd'>>, 'BOOL_AND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalAnd'>>, 'BOOLAND_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalAnd'>>, 'LOGICAL_OR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalOr'>>, 'BOOL_OR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalOr'>>, 'BOOLOR_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.LogicalOr'>>, 'LOWER': <function build_lower>, 'LCASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Lower'>>, 'LOWER_HEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.LowerHex'>>, 'MD5': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.MD5'>>, 'MD5_DIGEST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.MD5Digest'>>, 'M_D5_NUMBER_LOWER64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.MD5NumberLower64'>>, 'M_D5_NUMBER_UPPER64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.MD5NumberUpper64'>>, 'M_L_FORECAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.MLForecast'>>, 'M_L_TRANSLATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.MLTranslate'>>, 'MAKE_INTERVAL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.MakeInterval'>>, 'MANHATTAN_DISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.ManhattanDistance'>>, 'MAP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Map'>>, 'MAP_CAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapCat'>>, 'MAP_CONTAINS_KEY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapContainsKey'>>, 'MAP_DELETE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapDelete'>>, 'MAP_FROM_ENTRIES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapFromEntries'>>, 'MAP_INSERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapInsert'>>, 'MAP_KEYS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapKeys'>>, 'MAP_PICK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapPick'>>, 'MAP_SIZE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.MapSize'>>, 'MATCH_AGAINST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.MatchAgainst'>>, 'MAX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Max'>>, 'MEDIAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Median'>>, 'MIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Min'>>, 'MINHASH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Minhash'>>, 'MINHASH_COMBINE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.MinhashCombine'>>, 'MINUTE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Minute'>>, 'MODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Mode'>>, 'MONTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Month'>>, 'MONTHNAME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Monthname'>>, 'MONTHS_BETWEEN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.MonthsBetween'>>, 'NANVL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Nanvl'>>, 'NEGATIVE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Negative'>>, 'NET_FUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.NetFunc'>>, 'NEXT_DAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.NextDay'>>, 'NEXT_VALUE_FOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.ddl.NextValueFor'>>, 'NORMAL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Normal'>>, 'NORMALIZE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Normalize'>>, 'NTH_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.NthValue'>>, 'NTILE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Ntile'>>, 'NULLIF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Nullif'>>, 'NUMBER_TO_STR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.NumberToStr'>>, 'NVL2': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Nvl2'>>, 'OBJECT_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.ObjectAgg'>>, 'OBJECT_ID': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.ObjectId'>>, 'OBJECT_INSERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.ObjectInsert'>>, 'OBJECT_TRANSFORM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ObjectTransform'>>, 'OPEN_J_S_O_N': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.OpenJSON'>>, 'OR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Or'>>, 'OVERLAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Overlay'>>, 'PAD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Pad'>>, 'PARAMETERIZED_AGG': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.ParameterizedAgg'>>, 'PARSE_BIGNUMERIC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ParseBignumeric'>>, 'PARSE_DATETIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.ParseDatetime'>>, 'PARSE_IP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ParseIp'>>, 'PARSE_JSON': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.ParseJSON'>>, 'JSON_PARSE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.ParseJSON'>>, 'PARSE_NUMERIC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ParseNumeric'>>, 'PARSE_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.ParseTime'>>, 'PARSE_URL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ParseUrl'>>, 'PERCENT_RANK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.PercentRank'>>, 'PERCENTILE_CONT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.PercentileCont'>>, 'PERCENTILE_DISC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.PercentileDisc'>>, 'PI': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Pi'>>, 'POSEXPLODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Posexplode'>>, 'POSEXPLODE_OUTER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.PosexplodeOuter'>>, 'POWER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Pow'>>, 'POW': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Pow'>>, 'PREDICT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Predict'>>, 'PREVIOUS_DAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.PreviousDay'>>, 'QUANTILE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Quantile'>>, 'QUARTER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Quarter'>>, 'RADIANS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Radians'>>, 'RAND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Rand'>>, 'RANDOM': <function TeradataParser.<lambda>>, 'RANDN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Randn'>>, 'RANDSTR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Randstr'>>, 'RANGE_BUCKET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.RangeBucket'>>, 'RANGE_N': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.RangeN'>>, 'RANK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Rank'>>, 'READ_CSV': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ReadCSV'>>, 'READ_PARQUET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ReadParquet'>>, 'REDUCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Reduce'>>, 'REG_DOMAIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.RegDomain'>>, 'REGEXP_COUNT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpCount'>>, 'REGEXP_EXTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpExtract'>>, 'REGEXP_EXTRACT_ALL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpExtractAll'>>, 'REGEXP_FULL_MATCH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpFullMatch'>>, 'REGEXP_I_LIKE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpILike'>>, 'REGEXP_INSTR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpInstr'>>, 'REGEXP_LIKE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.RegexpLike'>>, 'REGEXP_REPLACE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpReplace'>>, 'REGEXP_SPLIT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpSplit'>>, 'REGEXP_SUBSTR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpSubstr'>>, 'REGR_AVGX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrAvgx'>>, 'REGR_AVGY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrAvgy'>>, 'REGR_COUNT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrCount'>>, 'REGR_INTERCEPT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrIntercept'>>, 'REGR_R2': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrR2'>>, 'REGR_SLOPE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrSlope'>>, 'REGR_SXX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrSxx'>>, 'REGR_SXY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrSxy'>>, 'REGR_SYY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrSyy'>>, 'REGR_VALX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrValx'>>, 'REGR_VALY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RegrValy'>>, 'REPEAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Repeat'>>, 'REPLACE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Replace'>>, 'REVERSE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Reverse'>>, 'RIGHT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Right'>>, 'RINT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Rint'>>, 'ROUND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Round'>>, 'ROW_NUMBER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.RowNumber'>>, 'RTRIMMED_LENGTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RtrimmedLength'>>, 'SHA': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SHA'>>, 'SHA1': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SHA'>>, 'S_H_A1_DIGEST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SHA1Digest'>>, 'SHA2': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SHA2'>>, 'S_H_A2_DIGEST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SHA2Digest'>>, 'SAFE_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.SafeAdd'>>, 'SAFE_CONVERT_BYTES_TO_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SafeConvertBytesToString'>>, 'SAFE_DIVIDE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.SafeDivide'>>, 'SAFE_FUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.SafeFunc'>>, 'SAFE_MULTIPLY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.SafeMultiply'>>, 'SAFE_NEGATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.SafeNegate'>>, 'SAFE_SUBTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.SafeSubtract'>>, 'SEARCH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Search'>>, 'SEARCH_IP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SearchIp'>>, 'SEC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sec'>>, 'SECH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sech'>>, 'SECOND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Second'>>, 'SECRET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Secret'>>, 'SEQ1': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Seq1'>>, 'SEQ2': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Seq2'>>, 'SEQ4': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Seq4'>>, 'SEQ8': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Seq8'>>, 'SESSION_USER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.SessionUser'>>, 'SHUFFLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Shuffle'>>, 'SIGN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sign'>>, 'SIGNUM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sign'>>, 'SIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sin'>>, 'SINH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sinh'>>, 'SKEWNESS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Skewness'>>, 'SOUNDEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Soundex'>>, 'SOUNDEX_P123': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SoundexP123'>>, 'SPACE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Space'>>, 'SPLIT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Split'>>, 'SPLIT_PART': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SplitPart'>>, 'SPLIT_TO_TABLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.SplitToTable'>>, 'SQRT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Sqrt'>>, 'ST_DISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StDistance'>>, 'ST_GEOGFROMGEOJSON': <function build_st_geogfromgeojson>, 'ST_GEOGPOINT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StGeogPoint'>>, 'ST_POINT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StPoint'>>, 'ST_MAKEPOINT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StPoint'>>, 'ST_X': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StX'>>, 'ST_Y': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StY'>>, 'STACK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Stack'>>, 'STANDARD_HASH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StandardHash'>>, 'STAR_MAP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StarMap'>>, 'STARTS_WITH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StartsWith'>>, 'STARTSWITH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StartsWith'>>, 'STDDEV': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Stddev'>>, 'STDEV': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Stddev'>>, 'STDDEV_POP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.StddevPop'>>, 'STDDEV_SAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.StddevSamp'>>, 'STR_POSITION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StrPosition'>>, 'STR_TO_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.StrToDate'>>, 'STR_TO_MAP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StrToMap'>>, 'STR_TO_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.StrToTime'>>, 'STR_TO_UNIX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.StrToUnix'>>, 'STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.String'>>, 'STRING_TO_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StringToArray'>>, 'SPLIT_BY_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StringToArray'>>, 'STRIP_NULL_VALUE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.json.StripNullValue'>>, 'STRTOK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Strtok'>>, 'STRTOK_SPLIT_TO_TABLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StrtokSplitToTable'>>, 'STRTOK_TO_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StrtokToArray'>>, 'STRUCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Struct'>>, 'STRUCT_EXTRACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.StructExtract'>>, 'STUFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Stuff'>>, 'INSERT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Stuff'>>, 'SUBSTRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Substring'>>, 'SUBSTR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Substring'>>, 'SUBSTRING_INDEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SubstringIndex'>>, 'SUM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Sum'>>, 'SYSTIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Systimestamp'>>, 'TAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Tan'>>, 'TANH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Tanh'>>, 'TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Time'>>, 'TIME_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeAdd'>>, 'TIME_DIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeDiff'>>, 'TIME_FROM_PARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeFromParts'>>, 'TIMEFROMPARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeFromParts'>>, 'TIME_SLICE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeSlice'>>, 'TIME_STR_TO_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeStrToDate'>>, 'TIME_STR_TO_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeStrToTime'>>, 'TIME_STR_TO_UNIX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeStrToUnix'>>, 'TIME_SUB': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeSub'>>, 'TIME_TO_STR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeToStr'>>, 'TIME_TO_TIME_STR': <function Parser.<lambda>>, 'TIME_TO_UNIX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeToUnix'>>, 'TIME_TRUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimeTrunc'>>, 'TIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Timestamp'>>, 'TIMESTAMP_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampAdd'>>, 'TIMESTAMPDIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampDiff'>>, 'TIMESTAMP_DIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampDiff'>>, 'TIMESTAMP_FROM_PARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampFromParts'>>, 'TIMESTAMPFROMPARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampFromParts'>>, 'TIMESTAMP_LTZ_FROM_PARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampLtzFromParts'>>, 'TIMESTAMPLTZFROMPARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampLtzFromParts'>>, 'TIMESTAMP_SUB': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampSub'>>, 'TIMESTAMP_TRUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampTrunc'>>, 'TIMESTAMP_TZ_FROM_PARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampTzFromParts'>>, 'TIMESTAMPTZFROMPARTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TimestampTzFromParts'>>, 'TO_ARRAY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ToArray'>>, 'TO_BASE32': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToBase32'>>, 'TO_BASE64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToBase64'>>, 'TO_BINARY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToBinary'>>, 'TO_BOOLEAN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ToBoolean'>>, 'TO_CHAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToChar'>>, 'TO_CODE_POINTS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToCodePoints'>>, 'TO_DAYS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.ToDays'>>, 'TO_DECFLOAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToDecfloat'>>, 'TO_DOUBLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToDouble'>>, 'TO_FILE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToFile'>>, 'TO_MAP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ToMap'>>, 'TO_NUMBER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.ToNumber'>>, 'TO_VARIANT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.ToVariant'>>, 'TRANSFORM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.Transform'>>, 'TRANSLATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Translate'>>, 'TRIM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Trim'>>, 'TRUNC': <function build_formatted_trunc>, 'TRUNCATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.Trunc'>>, 'TRY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Try'>>, 'TRY_BASE64_DECODE_BINARY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.TryBase64DecodeBinary'>>, 'TRY_BASE64_DECODE_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.TryBase64DecodeString'>>, 'TRY_CAST': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.TryCast'>>, 'TRY_HEX_DECODE_BINARY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.TryHexDecodeBinary'>>, 'TRY_HEX_DECODE_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.TryHexDecodeString'>>, 'TRY_TO_DECFLOAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.TryToDecfloat'>>, 'TS_OR_DI_TO_DI': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDiToDi'>>, 'TS_OR_DS_ADD': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsAdd'>>, 'TS_OR_DS_DIFF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsDiff'>>, 'TS_OR_DS_TO_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsToDate'>>, 'TS_OR_DS_TO_DATE_STR': <function Parser.<lambda>>, 'TS_OR_DS_TO_DATETIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsToDatetime'>>, 'TS_OR_DS_TO_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsToTime'>>, 'TS_OR_DS_TO_TIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.TsOrDsToTimestamp'>>, 'TYPEOF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Typeof'>>, 'UNHEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Unhex'>>, 'UNICODE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Unicode'>>, 'UNIFORM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Uniform'>>, 'UNIX_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixDate'>>, 'UNIX_MICROS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixMicros'>>, 'UNIX_MILLIS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixMillis'>>, 'UNIX_SECONDS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixSeconds'>>, 'UNIX_TO_STR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixToStr'>>, 'UNIX_TO_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixToTime'>>, 'UNIX_TO_TIME_STR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UnixToTimeStr'>>, 'UNNEST': <function Parser.<lambda>>, 'UPPER': <function build_upper>, 'UCASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Upper'>>, 'UTC_DATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UtcDate'>>, 'UTC_TIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UtcTime'>>, 'UTC_TIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UtcTimestamp'>>, 'UUID': <function Parser.<lambda>>, 'GEN_RANDOM_UUID': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Uuid'>>, 'GENERATE_UUID': <function Parser.<lambda>>, 'UUID_STRING': <function Parser.<lambda>>, 'VAR_MAP': <function build_var_map>, 'VARIANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Variance'>>, 'VARIANCE_SAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Variance'>>, 'VAR_SAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.Variance'>>, 'VARIANCE_POP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.VariancePop'>>, 'VAR_POP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.VariancePop'>>, 'VECTOR_SEARCH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.VectorSearch'>>, 'WEEK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Week'>>, 'WEEK_OF_YEAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.WeekOfYear'>>, 'WEEKOFYEAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.WeekOfYear'>>, 'WEEK_START': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.WeekStart'>>, 'WEIGHT_STRING': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.WeightString'>>, 'WIDTH_BUCKET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.WidthBucket'>>, 'XMLELEMENT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.XMLElement'>>, 'XMLGET': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.XMLGet'>>, 'X_M_L_TABLE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.XMLTable'>>, 'XOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Xor'>>, 'YEAR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.Year'>>, 'YEAR_OF_WEEK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.YearOfWeek'>>, 'YEAROFWEEK': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.YearOfWeek'>>, 'YEAR_OF_WEEK_ISO': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.YearOfWeekIso'>>, 'YEAROFWEEKISO': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.YearOfWeekIso'>>, 'ZIPF': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Zipf'>>, 'EXPLODE_OUTER': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array._ExplodeOuter'>>, 'SORT_ARRAY': <function build_sort_array>, 'ARRAYAGG': <function Parser.<lambda>>, 'GLOB': <function Parser.<lambda>>, 'JSON_EXTRACT_PATH_TEXT': <function build_extract_json_with_path.<locals>._builder>, 'LIKE': <function build_like>, 'LOG2': <function Parser.<lambda>>, 'LOG10': <function Parser.<lambda>>, 'LPAD': <function Parser.<lambda>>, 'LEFTPAD': <function Parser.<lambda>>, 'LTRIM': <function Parser.<lambda>>, 'MOD': <function build_mod>, 'RIGHTPAD': <function Parser.<lambda>>, 'RPAD': <function Parser.<lambda>>, 'RTRIM': <function Parser.<lambda>>, 'SCOPE_RESOLUTION': <function Parser.<lambda>>, 'STRPOS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StrPosition'>>, 'CHARINDEX': <function Parser.<lambda>>, 'INSTR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.StrPosition'>>, 'LOCATE': <function Parser.<lambda>>, 'TO_HEX': <function build_hex>, 'CARDINALITY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySize'>>, 'CHARACTERS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Length'>>, 'CURDATE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentDate'>>, 'CURTIME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.CurrentTime'>>}
EXPONENT = {<TokenType.DSTAR: 69>: <class 'sqlglot.expressions.core.Pow'>}
Inherited Members
sqlglot.parser.Parser
Parser
NO_PAREN_FUNCTIONS
STRUCT_TYPE_TOKENS
NESTED_TYPE_TOKENS
ENUM_TYPE_TOKENS
AGGREGATE_TYPE_TOKENS
TYPE_TOKENS
SIGNED_TO_UNSIGNED_TYPE_TOKEN
SUBQUERY_PREDICATES
SUBQUERY_TOKENS
RESERVED_TOKENS
TEXT_MATCH_EXCLUDED_TOKENS
DB_CREATABLES
CREATABLES
TRIGGER_EVENTS
ALTERABLES
ID_VAR_TOKENS
ALIAS_TOKENS
COLON_PLACEHOLDER_TOKENS
ARRAY_CONSTRUCTORS
COMMENT_TABLE_ALIAS_TOKENS
UPDATE_ALIAS_TOKENS
TRIM_TYPES
IDENTIFIER_TOKENS
BRACKETS
COLUMN_POSTFIX_TOKENS
TABLE_POSTFIX_TOKENS
CONJUNCTION
ASSIGNMENT
DISJUNCTION
EQUALITY
COMPARISON
BITWISE
TERM
FACTOR
TIMES
TIMESTAMPS
SET_OPERATIONS
JOIN_METHODS
JOIN_SIDES
JOIN_KINDS
JOIN_HINTS
SUPPORTS_DIRECTED_JOIN
TABLE_TERMINATORS
LAMBDAS
TYPED_LAMBDA_ARGS
LAMBDA_ARG_TERMINATORS
COLUMN_OPERATORS
JSON_OPERATORS
CAST_COLUMN_OPERATORS
EXPRESSION_PARSERS
UNARY_PARSERS
STRING_PARSERS
NUMERIC_PARSERS
PRIMARY_PARSERS
PLACEHOLDER_PARSERS
RANGE_PARSERS
PIPE_SYNTAX_TRANSFORM_PARSERS
PROPERTY_PARSERS
CONSTRAINT_PARSERS
ALTER_PARSERS
ALTER_ALTER_PARSERS
SCHEMA_UNNAMED_CONSTRAINTS
RESERVED_CONSTRAINT_KINDS
NO_PAREN_FUNCTION_PARSERS
INVALID_FUNC_NAME_TOKENS
FUNCTIONS_WITH_ALIASED_ARGS
KEY_VALUE_DEFINITIONS
EXTRACT_FUNCTIONS
QUERY_MODIFIER_PARSERS
QUERY_MODIFIER_TOKENS
SHOW_PARSERS
TYPE_LITERAL_PARSERS
TYPE_CONVERTERS
DDL_SELECT_TOKENS
PRE_VOLATILE_TOKENS
TRANSACTION_KIND
TRANSACTION_CHARACTERISTICS
CONFLICT_ALGORITHMS
CONFLICT_ACTIONS
TRIGGER_TIMING
TRIGGER_DEFERRABLE
CREATE_SEQUENCE
ISOLATED_LOADING_OPTIONS
USABLES
CAST_ACTIONS
SCHEMA_BINDING_OPTIONS
PROCEDURE_OPTIONS
EXECUTE_AS_OPTIONS
KEY_CONSTRAINT_OPTIONS
WINDOW_EXCLUDE_OPTIONS
INSERT_ALTERNATIVES
CLONE_KEYWORDS
VERSION_PHRASES
HISTORICAL_DATA_PREFIX
HISTORICAL_DATA_KIND
OPCLASS_FOLLOW_KEYWORDS
OPTYPE_FOLLOW_TOKENS
TABLE_INDEX_HINT_TOKENS
VIEW_ATTRIBUTES
WINDOW_ALIAS_TOKENS
WINDOW_BEFORE_PAREN_TOKENS
WINDOW_SIDES
JSON_KEY_VALUE_SEPARATOR_TOKENS
FETCH_TOKENS
ADD_CONSTRAINT_TOKENS
ADD_CONSTRAINT_KEYWORDS
DISTINCT_TOKENS
UNNEST_OFFSET_ALIAS_TOKENS
SELECT_START_TOKENS
COPY_INTO_VARLEN_OPTIONS
IS_PREDICATE_PRECEDENCE
IS_PREDICATE_TOKENS
IS_JSON_PREDICATE_KIND
ODBC_DATETIME_LITERALS
ON_CONDITION_TOKENS
PRIVILEGE_FOLLOW_TOKENS
DESCRIBE_STYLES
SET_ASSIGNMENT_DELIMITERS
ANALYZE_STYLES
ANALYZE_EXPRESSION_PARSERS
PARTITION_KEYWORDS
AMBIGUOUS_ALIAS_TOKENS
OPERATION_MODIFIERS
RECURSIVE_CTE_SEARCH_KIND
SECURITY_PROPERTY_KEYWORDS
MODIFIABLES
STRICT_CAST
PREFIXED_PIVOT_COLUMNS
IDENTIFY_PIVOT_STRINGS
UNPIVOT_VALUE_COLUMNS_FIRST
PIVOT_COLUMN_NAMING
LOG_DEFAULTS_TO_LN
DEFAULT_SAMPLING_METHOD
SET_REQUIRES_ASSIGNMENT_DELIMITER
TRIM_PATTERN_FIRST
STRING_ALIASES
STRING_AGG_DEFAULT_SEPARATOR
MODIFIERS_ATTACHED_TO_SET_OP
SET_OP_MODIFIERS
NO_PAREN_IF_COMMANDS
JSON_ARROWS_REQUIRE_JSON_TYPE
COLON_IS_VARIANT_EXTRACT
COLON_CHAIN_IS_SINGLE_EXTRACT
SUPPORTS_IMPLICIT_UNNEST
SUPPORTS_TABLE_QUERY
SUPPORTS_GROUP_BY_AUTO
SUPPORTS_DIGIT_PREFIXED_FIELD_NAMES
INTERVAL_SPANS
SUPPORTS_PARTITION_SELECTION
WRAPPED_TRANSFORM_COLUMN_CONSTRAINT
OPTIONAL_ALIAS_TOKEN_CTE
ALTER_RENAME_REQUIRES_COLUMN
ALTER_DROP_REQUIRES_COLUMN
ALTER_TABLE_PARTITIONS
ALTER_TABLE_MIXED_ACTIONS
ALTER_TABLE_REQUIRES_ACTION
ALTER_COLUMN_TYPE_REQUIRES_KEYWORD
JOINS_HAVE_EQUAL_PRECEDENCE
MATCH_RECOGNIZE_APPLIES_TO_JOINS
ZONE_AWARE_TIMESTAMP_CONSTRUCTOR
AT_TIME_ZONE_READS_SESSION_ZONE
MAP_KEYS_ARE_ARBITRARY_EXPRESSIONS
JSON_EXTRACT_REQUIRES_JSON_EXPRESSION
ADD_JOIN_ON_TRUE
SUPPORTS_OMITTED_INTERVAL_SPAN_UNIT
SUPPORTS_MULTI_PART_INTERVAL_ADD
ADJACENT_STRINGS_CANNOT_BE_CONNECTED
SUPPORTS_NTH_VALUE_FROM_MODIFIER
QUOTED_TYPES_TO_PRESERVE
SHOW_TRIE
error_level
error_message_context
max_errors
max_nodes
dialect
sql
errors
reset
raise_error
validate_expression
parse
parse_into
check_errors
expression
parse_set_operation
build_cast