sqlglot.parsers.clickhouse
1from __future__ import annotations 2 3import typing as t 4 5from collections import deque 6 7from sqlglot import exp, parser 8from sqlglot.dialects.dialect import ( 9 build_array_lambda_func, 10 build_date_delta, 11 build_formatted_time, 12 build_json_extract_path, 13 build_like, 14) 15from sqlglot.helper import seq_get 16from sqlglot.parser import IsPredicatePrecedence 17from sqlglot.tokens import Token, TokenType 18from builtins import type as Type 19 20if t.TYPE_CHECKING: 21 from sqlglot._typing import E 22 from collections.abc import Mapping, Sequence, Collection 23 24 25def _build_datetime_format( 26 expr_type: Type[E], 27) -> t.Callable: 28 def _builder(args: list, dialect: t.Any) -> E: 29 expr = build_formatted_time(expr_type)(args, dialect) 30 31 timezone = seq_get(args, 2) 32 if timezone: 33 expr.set("zone", timezone) 34 35 return expr 36 37 return _builder 38 39 40def _build_count_if(args: list) -> exp.CountIf | exp.CombinedAggFunc: 41 if len(args) == 1: 42 return exp.CountIf(this=seq_get(args, 0)) 43 44 return exp.CombinedAggFunc(this="countIf", expressions=args) 45 46 47def _build_date_diff(args: list) -> exp.DateDiff: 48 if len(args) < 3: 49 return exp.DateDiff.from_arg_list(args) 50 51 unit = args[0] 52 name = unit.name.upper() 53 # U and US are microsecond aliases only in strings. Quoted identifiers are always columns. 54 if unit.is_string or ( 55 isinstance(unit, exp.Column) 56 and not unit.table 57 and not unit.this.quoted 58 and name not in ("U", "US") 59 ): 60 if mapped := DATE_DIFF_UNIT_MAPPING.get(name): 61 unit = exp.var(mapped) 62 63 diff = exp.DateDiff( 64 this=args[2], expression=args[1], zone=seq_get(args, 3), date_part_boundary=True 65 ) 66 # TimeUnit would otherwise turn an unqualified column into a Var. 67 diff.set("unit", unit) 68 return diff 69 70 71def _build_str_to_date(args: list) -> exp.Cast | exp.Anonymous: 72 if len(args) == 3: 73 return exp.Anonymous(this="STR_TO_DATE", expressions=args) 74 75 strtodate = exp.StrToDate.from_arg_list(args) 76 return exp.cast(strtodate, exp.DType.DATETIME.into_expr()) 77 78 79def _build_timestamp_trunc(unit: str) -> t.Callable[[list], exp.TimestampTrunc]: 80 return lambda args: exp.TimestampTrunc( 81 this=seq_get(args, 0), unit=exp.var(unit), zone=seq_get(args, 1) 82 ) 83 84 85def _build_array_sort(name: str, asc: bool) -> t.Callable[[list], exp.Func]: 86 # Both sorts put NULLs last; the lambda form sorts by a key, which ArraySort can't represent 87 return lambda args: ( 88 exp.ArraySort(this=args[0], asc=None if asc else exp.false(), nulls_first=exp.false()) 89 if len(args) == 1 90 else exp.Anonymous(this=name, expressions=args) 91 ) 92 93 94def _build_without_extra_args( 95 expr_type: type[exp.Func], name: str, *, allow_empty: bool = True 96) -> t.Callable[[list], exp.Func]: 97 # The shared expression only represents the single-argument form. 98 return lambda args: ( 99 exp.Anonymous(this=name, expressions=args) 100 if len(args) > 1 or (allow_empty and not args) 101 else expr_type.from_arg_list(args) 102 ) 103 104 105def _build_split_by_char(args: list) -> exp.Split | exp.Anonymous: 106 sep = seq_get(args, 0) 107 if isinstance(sep, exp.Literal): 108 sep_value = sep.to_py() 109 if isinstance(sep_value, str) and len(sep_value.encode("utf-8")) == 1: 110 return _build_split(exp.Split)(args) 111 112 return exp.Anonymous(this="splitByChar", expressions=args) 113 114 115def _build_split(exp_class: Type[E]) -> t.Callable[[list], E]: 116 return lambda args: exp_class( 117 this=seq_get(args, 1), expression=seq_get(args, 0), limit=seq_get(args, 2) 118 ) 119 120 121# Skip the 'week' unit since ClickHouse's toStartOfWeek 122# uses an extra mode argument to specify the first day of the week 123TIMESTAMP_TRUNC_UNITS = { 124 "MICROSECOND", 125 "MILLISECOND", 126 "SECOND", 127 "MINUTE", 128 "HOUR", 129 "DAY", 130 "MONTH", 131 "QUARTER", 132 "YEAR", 133} 134 135# https://clickhouse.com/docs/sql-reference/functions/date-time-functions#dateDiff 136DATE_DIFF_UNIT_MAPPING = { 137 alias: unit 138 for unit, abbreviations in { 139 "NANOSECOND": ("NS",), 140 "MICROSECOND": ("US", "U"), 141 "MILLISECOND": ("MS",), 142 "SECOND": ("SS", "S"), 143 "MINUTE": ("MI", "N"), 144 "HOUR": ("HH", "H"), 145 "DAY": ("DD", "D"), 146 "WEEK": ("WK", "WW"), 147 "MONTH": ("MM", "M"), 148 "QUARTER": ("QQ", "Q"), 149 "YEAR": ("YYYY", "YY"), 150 }.items() 151 for alias in (unit, f"{unit}S", *abbreviations) 152} 153 154 155_AGG_FUNCTIONS = { 156 "count", 157 "min", 158 "max", 159 "sum", 160 "avg", 161 "any", 162 "stddevPop", 163 "stddevSamp", 164 "varPop", 165 "varSamp", 166 "corr", 167 "covarPop", 168 "covarSamp", 169 "entropy", 170 "exponentialMovingAverage", 171 "intervalLengthSum", 172 "kolmogorovSmirnovTest", 173 "mannWhitneyUTest", 174 "median", 175 "rankCorr", 176 "sumKahan", 177 "studentTTest", 178 "welchTTest", 179 "anyHeavy", 180 "anyLast", 181 "boundingRatio", 182 "first_value", 183 "last_value", 184 "argMin", 185 "argMax", 186 "avgWeighted", 187 "topK", 188 "approx_top_sum", 189 "topKWeighted", 190 "deltaSum", 191 "deltaSumTimestamp", 192 "groupArray", 193 "groupArrayLast", 194 "groupConcat", 195 "groupUniqArray", 196 "groupArrayInsertAt", 197 "groupArrayMovingAvg", 198 "groupArrayMovingSum", 199 "groupArraySample", 200 "groupBitAnd", 201 "groupBitOr", 202 "groupBitXor", 203 "groupBitmap", 204 "groupBitmapAnd", 205 "groupBitmapOr", 206 "groupBitmapXor", 207 "sumWithOverflow", 208 "sumMap", 209 "minMap", 210 "maxMap", 211 "skewSamp", 212 "skewPop", 213 "kurtSamp", 214 "kurtPop", 215 "uniq", 216 "uniqExact", 217 "uniqCombined", 218 "uniqCombined64", 219 "uniqHLL12", 220 "uniqTheta", 221 "quantile", 222 "quantiles", 223 "quantileExact", 224 "quantileExactInclusive", 225 "quantilesExact", 226 "quantilesExactExclusive", 227 "quantileExactLow", 228 "quantilesExactLow", 229 "quantileExactHigh", 230 "quantilesExactHigh", 231 "quantileExactWeighted", 232 "quantilesExactWeighted", 233 "quantileTiming", 234 "quantilesTiming", 235 "quantileTimingWeighted", 236 "quantilesTimingWeighted", 237 "quantileDeterministic", 238 "quantilesDeterministic", 239 "quantileTDigest", 240 "quantilesTDigest", 241 "quantileTDigestWeighted", 242 "quantilesTDigestWeighted", 243 "quantileBFloat16", 244 "quantilesBFloat16", 245 "quantileBFloat16Weighted", 246 "quantilesBFloat16Weighted", 247 "simpleLinearRegression", 248 "stochasticLinearRegression", 249 "stochasticLogisticRegression", 250 "categoricalInformationValue", 251 "contingency", 252 "cramersV", 253 "cramersVBiasCorrected", 254 "theilsU", 255 "maxIntersections", 256 "maxIntersectionsPosition", 257 "meanZTest", 258 "quantileInterpolatedWeighted", 259 "quantilesInterpolatedWeighted", 260 "quantileGK", 261 "quantilesGK", 262 "sparkBar", 263 "sumCount", 264 "largestTriangleThreeBuckets", 265 "histogram", 266 "sequenceMatch", 267 "sequenceCount", 268 "windowFunnel", 269 "retention", 270 "uniqUpTo", 271 "sequenceNextNode", 272 "exponentialTimeDecayedAvg", 273} 274 275# Sorted longest-first so that compound suffixes (e.g. "SimpleState") are matched 276# before their sub-suffixes (e.g. "State") when resolving multi-combinator functions. 277_AGG_FUNCTIONS_SUFFIXES: list[str] = sorted( 278 [ 279 "If", 280 "Array", 281 "ArrayIf", 282 "Map", 283 "SimpleState", 284 "State", 285 "Merge", 286 "MergeState", 287 "ForEach", 288 "Distinct", 289 "OrDefault", 290 "OrNull", 291 "Resample", 292 "ArgMin", 293 "ArgMax", 294 ], 295 key=len, 296 reverse=True, 297) 298 299# Memoized examples of all 0- and 1-suffix aggregate function names 300_AGG_FUNC_MAPPING: Mapping[str, tuple[str, str | None]] = { 301 f"{f}{sfx}": (f, sfx) for sfx in _AGG_FUNCTIONS_SUFFIXES for f in _AGG_FUNCTIONS 302} | {f: (f, None) for f in _AGG_FUNCTIONS} 303 304 305class ClickHouseParser(parser.Parser): 306 IS_PREDICATE_PRECEDENCE = IsPredicatePrecedence.LOW 307 308 SET_OP_MODIFIERS = {"settings", "format"} 309 INTERVAL_SPANS = False 310 OPTIONAL_ALIAS_TOKEN_CTE = False 311 JOINS_HAVE_EQUAL_PRECEDENCE = True 312 313 FUNCTIONS = { 314 **{ 315 k: v 316 for k, v in parser.Parser.FUNCTIONS.items() 317 if k not in ("TRANSFORM", "APPROX_TOP_SUM") 318 }, 319 **{ 320 regexp_extract: lambda args: exp.RegexpExtract( 321 this=seq_get(args, 0), 322 expression=seq_get(args, 1), 323 group=seq_get(args, 2), 324 ) 325 for regexp_extract in ("REGEXPEXTRACT", "REGEXP_EXTRACT", "REGEXP_SUBSTR") 326 }, 327 **{f"TOSTARTOF{unit}": _build_timestamp_trunc(unit=unit) for unit in TIMESTAMP_TRUNC_UNITS}, 328 "ANY": exp.AnyValue.from_arg_list, 329 "ARRAYCOMPACT": exp.ArrayCompact.from_arg_list, 330 "ARRAYCONCAT": exp.ArrayConcat.from_arg_list, 331 "ARRAYDISTINCT": exp.ArrayDistinct.from_arg_list, 332 "ARRAYEXCEPT": exp.ArrayExcept.from_arg_list, 333 "ARRAYSUM": exp.ArraySum.from_arg_list, 334 "ARRAYMAX": _build_without_extra_args(exp.ArrayMax, "arrayMax", allow_empty=False), 335 "ARRAYMIN": _build_without_extra_args(exp.ArrayMin, "arrayMin", allow_empty=False), 336 "ARRAYREVERSE": exp.ArrayReverse.from_arg_list, 337 "ARRAYREVERSESORT": _build_array_sort("arrayReverseSort", asc=False), 338 "ARRAYSLICE": exp.ArraySlice.from_arg_list, 339 "ARRAYSORT": _build_array_sort("arraySort", asc=True), 340 "ARRAYFILTER": build_array_lambda_func(exp.ArrayFilter, "arrayFilter"), 341 "ARRAYMAP": build_array_lambda_func(exp.Transform, "arrayMap"), 342 "CURRENTDATABASE": exp.CurrentDatabase.from_arg_list, 343 "CURRENTSCHEMAS": exp.CurrentSchemas.from_arg_list, 344 "COUNTIF": _build_count_if, 345 "COUNTMATCHES": exp.RegexpCount.from_arg_list, 346 "CITYHASH64": exp.CityHash64.from_arg_list, 347 "COSINEDISTANCE": exp.CosineDistance.from_arg_list, 348 "VERSION": exp.CurrentVersion.from_arg_list, 349 "DATE_ADD": build_date_delta(exp.DateAdd, default_unit=None), 350 "DATEADD": build_date_delta(exp.DateAdd, default_unit=None), 351 **dict.fromkeys( 352 ("DATE_DIFF", "DATEDIFF", "TIMESTAMP_DIFF", "TIMESTAMPDIFF"), _build_date_diff 353 ), 354 "DATE_FORMAT": _build_datetime_format(exp.TimeToStr), 355 "DATE_SUB": build_date_delta(exp.DateSub, default_unit=None), 356 "DATESUB": build_date_delta(exp.DateSub, default_unit=None), 357 "DATETRUNC": exp.DateTrunc.from_arg_list, 358 "FORMATDATETIME": _build_datetime_format(exp.TimeToStr), 359 "GROUPBITAND": exp.BitwiseAndAgg.from_arg_list, 360 "GROUPBITOR": exp.BitwiseOrAgg.from_arg_list, 361 "GROUPBITXOR": exp.BitwiseXorAgg.from_arg_list, 362 "HAS": exp.ArrayContains.from_arg_list, 363 "ILIKE": build_like(exp.ILike), 364 "ISINFINITE": exp.IsInf.from_arg_list, 365 "JSONEXTRACTRAW": build_json_extract_path( 366 exp.JSONExtract, zero_based_indexing=False, arrow_req_json_type=True 367 ), 368 "JSONEXTRACTSTRING": build_json_extract_path( 369 exp.JSONExtractScalar, zero_based_indexing=False, arrow_req_json_type=True 370 ), 371 "LENGTH": lambda args: exp.Length(this=seq_get(args, 0), binary=True), 372 "LIKE": build_like(exp.Like), 373 "L2Distance": exp.EuclideanDistance.from_arg_list, 374 "MAP": parser.build_var_map, 375 "MATCH": exp.RegexpLike.from_arg_list, 376 "NOTLIKE": build_like(exp.Like, not_like=True), 377 "PARSEDATETIME": _build_datetime_format(exp.ParseDatetime), 378 "RANDCANONICAL": exp.Rand.from_arg_list, 379 "STR_TO_DATE": _build_str_to_date, 380 "TIMESTAMP_SUB": build_date_delta(exp.TimestampSub, default_unit=None), 381 "TIMESTAMPSUB": build_date_delta(exp.TimestampSub, default_unit=None), 382 "TIMESTAMP_ADD": build_date_delta(exp.TimestampAdd, default_unit=None), 383 "TIMESTAMPADD": build_date_delta(exp.TimestampAdd, default_unit=None), 384 **dict.fromkeys( 385 ("TODAYOFWEEK", "DAYOFWEEK", "DAY_OF_WEEK"), 386 _build_without_extra_args(exp.DayOfWeekIso, "toDayOfWeek"), 387 ), 388 "TOISOWEEK": _build_without_extra_args(exp.WeekOfYear, "toISOWeek"), 389 "TOISOYEAR": _build_without_extra_args(exp.YearOfWeekIso, "toISOYear"), 390 "TOMONDAY": _build_timestamp_trunc("WEEK"), 391 "UNIQ": exp.ApproxDistinct.from_arg_list, 392 "MD5": exp.MD5Digest.from_arg_list, 393 "SHA1": exp.SHA1Digest.from_arg_list, 394 "SHA256": lambda args: exp.SHA2Digest( 395 this=seq_get(args, 0), length=exp.Literal.number(256) 396 ), 397 "SHA512": lambda args: exp.SHA2Digest( 398 this=seq_get(args, 0), length=exp.Literal.number(512) 399 ), 400 "SPLITBYCHAR": _build_split_by_char, 401 "SPLITBYREGEXP": _build_split(exp.RegexpSplit), 402 "SPLITBYSTRING": _build_split(exp.Split), 403 "SUBSTRINGINDEX": exp.SubstringIndex.from_arg_list, 404 "TOTYPENAME": exp.Typeof.from_arg_list, 405 "TRIMBOTH": exp.Trim.from_arg_list, 406 "TRIMLEFT": parser.build_trim, 407 "TRIMRIGHT": lambda args: parser.build_trim(args, is_left=False), 408 "EDITDISTANCE": exp.Levenshtein.from_arg_list, 409 "JAROWINKLERSIMILARITY": exp.JarowinklerSimilarity.from_arg_list, 410 "LEVENSHTEINDISTANCE": exp.Levenshtein.from_arg_list, 411 "UTCTIMESTAMP": exp.UtcTimestamp.from_arg_list, 412 } 413 414 AGG_FUNCTIONS: t.ClassVar = _AGG_FUNCTIONS 415 AGG_FUNCTIONS_SUFFIXES: t.ClassVar = _AGG_FUNCTIONS_SUFFIXES 416 417 FUNC_TOKENS = { 418 *parser.Parser.FUNC_TOKENS, 419 TokenType.AND, 420 TokenType.FILE, 421 TokenType.OR, 422 TokenType.PASTE, 423 TokenType.SET, 424 TokenType.VIEW, 425 } 426 427 RESERVED_TOKENS = parser.Parser.RESERVED_TOKENS - {TokenType.SELECT} 428 429 ID_VAR_TOKENS = { 430 *parser.Parser.ID_VAR_TOKENS, 431 TokenType.LIKE, 432 } 433 434 AGG_FUNC_MAPPING: t.ClassVar = _AGG_FUNC_MAPPING 435 436 @classmethod 437 def _resolve_clickhouse_agg(cls, name: str) -> tuple[str, Sequence[str]] | None: 438 # ClickHouse allows chaining multiple combinators on aggregate functions. 439 # See https://clickhouse.com/docs/sql-reference/aggregate-functions/combinators 440 # N.B. this resolution allows any suffix stack, including ones that ClickHouse rejects 441 # syntactically such as sumMergeMerge (due to repeated adjacent suffixes) 442 443 # Until we are able to identify a 1- or 0-suffix aggregate function by name, 444 # repeatedly strip and queue suffixes (checking longer suffixes first, see comment on 445 # AGG_FUNCTIONS_SUFFIXES_SORTED). This loop only runs for 2 or more suffixes, 446 # as AGG_FUNC_MAPPING memoizes all 0- and 1-suffix 447 accumulated_suffixes: deque[str] = deque() 448 while (parts := _AGG_FUNC_MAPPING.get(name)) is None: 449 for suffix in _AGG_FUNCTIONS_SUFFIXES: 450 if name.endswith(suffix) and len(name) != len(suffix): 451 accumulated_suffixes.appendleft(suffix) 452 name = name[: -len(suffix)] 453 break 454 else: 455 return None 456 457 # We now have a 0- or 1-suffix aggregate 458 agg_func_name, inner_suffix = parts 459 if inner_suffix: 460 # this is a 1-suffix aggregate (either naturally or via repeated suffix 461 # stripping). prepend the innermost suffix. 462 accumulated_suffixes.appendleft(inner_suffix) 463 464 return (agg_func_name, accumulated_suffixes) 465 466 FUNCTION_PARSERS = { 467 **{k: v for k, v in parser.Parser.FUNCTION_PARSERS.items() if k != "MATCH"}, 468 "ARRAYJOIN": lambda self: self.expression(exp.Explode(this=self._parse_expression())), 469 "GROUPCONCAT": lambda self: self._parse_group_concat(), 470 "QUANTILE": lambda self: self._parse_quantile(exp.ApproxQuantile), 471 "QUANTILEEXACT": lambda self: self._parse_quantile(exp.Quantile), 472 "MEDIAN": lambda self: self._parse_quantile(exp.ApproxQuantile), 473 "MEDIANEXACT": lambda self: self._parse_quantile(exp.Quantile), 474 "COLUMNS": lambda self: self._parse_columns(), 475 "TUPLE": lambda self: exp.Struct.from_arg_list(self._parse_function_args(alias=True)), 476 "AND": lambda self: self._parse_connector_function(exp.and_), 477 "OR": lambda self: self._parse_connector_function(exp.or_), 478 "XOR": lambda self: self._parse_xor(), 479 "VIEW": lambda self: self.expression( 480 exp.Anonymous(this="view", expressions=[self._parse_select()]) 481 ), 482 } 483 484 PROPERTY_PARSERS = { 485 **{k: v for k, v in parser.Parser.PROPERTY_PARSERS.items() if k != "DYNAMIC"}, 486 "ENGINE": lambda self: self._parse_engine_property(), 487 "REFRESH": lambda self: self._parse_auto_refresh_property(), 488 "UUID": lambda self: self.expression(exp.UuidProperty(this=self._parse_string())), 489 } 490 491 NO_PAREN_FUNCTION_PARSERS = { 492 k: v for k, v in parser.Parser.NO_PAREN_FUNCTION_PARSERS.items() if k != "ANY" 493 } 494 495 NO_PAREN_FUNCTIONS = { 496 k: v 497 for k, v in parser.Parser.NO_PAREN_FUNCTIONS.items() 498 if k != TokenType.CURRENT_TIMESTAMP 499 } 500 501 RANGE_PARSERS = { 502 **parser.Parser.RANGE_PARSERS, 503 TokenType.GLOBAL: lambda self, this: self._parse_global_in(this), 504 } 505 506 COLUMN_OPERATORS = { 507 **{k: v for k, v in parser.Parser.COLUMN_OPERATORS.items() if k != TokenType.PLACEHOLDER}, 508 TokenType.DOTCARET: lambda self, this, field: self.expression( 509 exp.NestedJSONSelect(this=this, expression=field) 510 ), 511 } 512 513 JOIN_KINDS = { 514 *parser.Parser.JOIN_KINDS, 515 TokenType.ALL, 516 TokenType.ANY, 517 TokenType.ASOF, 518 TokenType.ARRAY, 519 TokenType.PASTE, 520 } 521 522 TABLE_ALIAS_TOKENS = parser.Parser.TABLE_ALIAS_TOKENS - { 523 TokenType.ALL, 524 TokenType.ANY, 525 TokenType.ARRAY, 526 TokenType.ASOF, 527 TokenType.FINAL, 528 TokenType.FORMAT, 529 TokenType.PASTE, 530 TokenType.SETTINGS, 531 } 532 533 ALIAS_TOKENS = parser.Parser.ALIAS_TOKENS - { 534 TokenType.FORMAT, 535 TokenType.SETTINGS, 536 } 537 538 LOG_DEFAULTS_TO_LN = True 539 540 QUERY_MODIFIER_PARSERS = { 541 **parser.Parser.QUERY_MODIFIER_PARSERS, 542 TokenType.SETTINGS: lambda self: ( 543 "settings", 544 self._advance() or self._parse_csv(self._parse_assignment), 545 ), 546 TokenType.FORMAT: lambda self: ("format", self._advance() or self._parse_id_var()), 547 } 548 549 CONSTRAINT_PARSERS = { 550 **parser.Parser.CONSTRAINT_PARSERS, 551 "INDEX": lambda self: self._parse_index_constraint(), 552 "CODEC": lambda self: self._parse_compress(), 553 "ASSUME": lambda self: self._parse_assume_constraint(), 554 } 555 556 ALTER_PARSERS = { 557 **parser.Parser.ALTER_PARSERS, 558 "MODIFY": lambda self: self._parse_alter_table_alter(), 559 "REPLACE": lambda self: self._parse_alter_table_replace(), 560 } 561 562 SCHEMA_UNNAMED_CONSTRAINTS = { 563 *parser.Parser.SCHEMA_UNNAMED_CONSTRAINTS, 564 "INDEX", 565 } - {"CHECK"} 566 567 PLACEHOLDER_PARSERS = { 568 **parser.Parser.PLACEHOLDER_PARSERS, 569 TokenType.L_BRACE: lambda self: self._parse_query_parameter(), 570 } 571 572 STATEMENT_PARSERS = { 573 **parser.Parser.STATEMENT_PARSERS, 574 TokenType.DETACH: lambda self: self._parse_detach(), 575 } 576 577 def _parse_wrapped_select_or_assignment(self) -> exp.Expr | None: 578 return self._parse_wrapped( 579 lambda: self._parse_select() or self._parse_assignment(), optional=True 580 ) 581 582 def _parse_check_constraint(self) -> exp.CheckColumnConstraint | None: 583 return self.expression( 584 exp.CheckColumnConstraint(this=self._parse_wrapped_select_or_assignment()) 585 ) 586 587 def _parse_assume_constraint(self) -> exp.AssumeColumnConstraint | None: 588 return self.expression( 589 exp.AssumeColumnConstraint(this=self._parse_wrapped_select_or_assignment()) 590 ) 591 592 def _parse_engine_property(self) -> exp.EngineProperty: 593 self._match(TokenType.EQ) 594 return self.expression( 595 exp.EngineProperty(this=self._parse_field(any_token=True, anonymous_func=True)) 596 ) 597 598 # https://clickhouse.com/docs/en/sql-reference/statements/create/function 599 def _parse_user_defined_function_expression(self) -> exp.Expr | None: 600 return self._parse_lambda() 601 602 def _parse_types( 603 self, 604 check_func: bool = False, 605 schema: bool = False, 606 allow_identifiers: bool = True, 607 with_collation: bool = False, 608 ) -> exp.Expr | None: 609 dtype = super()._parse_types( 610 check_func=check_func, 611 schema=schema, 612 allow_identifiers=allow_identifiers, 613 with_collation=with_collation, 614 ) 615 if isinstance(dtype, exp.DataType) and dtype.args.get("nullable") is not True: 616 # Mark every type as non-nullable which is ClickHouse's default, unless it's 617 # already marked as nullable. This marker helps us transpile types from other 618 # dialects to ClickHouse, so that we can e.g. produce `CAST(x AS Nullable(String))` 619 # from `CAST(x AS TEXT)`. If there is a `NULL` value in `x`, the former would 620 # fail in ClickHouse without the `Nullable` type constructor. 621 dtype.set("nullable", False) 622 623 return dtype 624 625 def _parse_extract(self) -> exp.Expr: 626 index = self._index 627 this = self._parse_bitwise() 628 if self._match(TokenType.FROM): 629 self._retreat(index) 630 return super()._parse_extract() 631 632 # We return Anonymous here because extract and regexpExtract have different semantics, 633 # so parsing extract(foo, bar) into RegexpExtract can potentially break queries. E.g., 634 # `extract('foobar', 'b')` works, but ClickHouse crashes for `regexpExtract('foobar', 'b')`. 635 # 636 # TODO: can we somehow convert the former into an equivalent `regexpExtract` call? 637 self._match(TokenType.COMMA) 638 return self.expression( 639 exp.Anonymous(this="extract", expressions=[this, self._parse_bitwise()]) 640 ) 641 642 def _parse_assignment(self) -> exp.Expr | None: 643 this = super()._parse_assignment() 644 645 if self._match(TokenType.PLACEHOLDER): 646 return self.expression( 647 exp.If( 648 this=this, 649 true=self._parse_assignment(), 650 false=self._match(TokenType.COLON) and self._parse_assignment(), 651 ) 652 ) 653 654 return this 655 656 def _parse_query_parameter(self) -> exp.Expr | None: 657 """ 658 Parse a placeholder expression like SELECT {abc: UInt32} or FROM {table: Identifier} 659 https://clickhouse.com/docs/en/sql-reference/syntax#defining-and-using-query-parameters 660 """ 661 index = self._index 662 663 this = self._parse_id_var() 664 self._match(TokenType.COLON) 665 kind = self._parse_types(check_func=False, allow_identifiers=False) or ( 666 self._match_text_seq("IDENTIFIER") and "Identifier" 667 ) 668 669 if not kind: 670 self._retreat(index) 671 return None 672 elif not self._match(TokenType.R_BRACE): 673 self.raise_error("Expecting }") 674 675 if isinstance(this, exp.Identifier) and not this.quoted: 676 this = exp.var(this.name) 677 678 return self.expression(exp.Placeholder(this=this, kind=kind)) 679 680 def _parse_bracket(self, this: exp.Expr | None = None) -> exp.Expr | None: 681 if this: 682 bracket_json_type = None 683 684 while self._match_pair(TokenType.L_BRACKET, TokenType.R_BRACKET): 685 bracket_json_type = exp.DataType( 686 this=exp.DType.ARRAY, 687 expressions=[ 688 bracket_json_type 689 or exp.DType.JSON.into_expr(dialect=self.dialect, nullable=False) 690 ], 691 nested=True, 692 ) 693 694 if bracket_json_type: 695 return self.expression(exp.JSONCast(this=this, to=bracket_json_type)) 696 697 l_brace = self._match(TokenType.L_BRACE, advance=False) 698 bracket = super()._parse_bracket(this) 699 700 if l_brace and isinstance(bracket, exp.Struct): 701 varmap = exp.VarMap(keys=exp.Array(), values=exp.Array()) 702 for expression in bracket.expressions: 703 if not isinstance(expression, exp.PropertyEQ): 704 break 705 706 varmap.args["keys"].append("expressions", exp.Literal.string(expression.name)) 707 varmap.args["values"].append("expressions", expression.expression) 708 709 return varmap 710 711 return bracket 712 713 def _parse_global_in(self, this: exp.Expr | None) -> exp.Not | exp.In | None: 714 index = self._index - 1 715 is_negated = self._match(TokenType.NOT) 716 if not self._match(TokenType.IN): 717 self._retreat(index) 718 return None 719 720 in_expr = self._parse_in(this) 721 in_expr.set("is_global", True) 722 return self.expression(exp.Not(this=in_expr)) if is_negated else in_expr 723 724 def _parse_table( 725 self, 726 schema: bool = False, 727 joins: bool = False, 728 alias_tokens: Collection[TokenType] | None = None, 729 parse_bracket: bool = False, 730 is_db_reference: bool = False, 731 parse_partition: bool = False, 732 consume_pipe: bool = False, 733 ) -> exp.Expr | None: 734 this = super()._parse_table( 735 schema=schema, 736 joins=joins, 737 alias_tokens=alias_tokens, 738 parse_bracket=parse_bracket, 739 is_db_reference=is_db_reference, 740 ) 741 742 if isinstance(this, exp.Table): 743 inner = this.this 744 alias = this.args.get("alias") 745 746 if isinstance(inner, exp.GenerateSeries) and alias and not alias.columns: 747 alias.set("columns", [exp.to_identifier("generate_series")]) 748 749 if self._match(TokenType.FINAL): 750 this = self.expression(exp.Final(this=this)) 751 752 return this 753 754 def _parse_position(self, haystack_first: bool = False) -> exp.StrPosition: 755 return super()._parse_position(haystack_first=True) 756 757 # https://clickhouse.com/docs/en/sql-reference/statements/select/with/ 758 def _parse_cte(self) -> exp.CTE | exp.FunctionSpecification | None: 759 # WITH <identifier> AS <subquery expression> 760 cte: exp.CTE | exp.FunctionSpecification | None = self._try_parse(super()._parse_cte) 761 762 if not cte: 763 # WITH <expression> AS <identifier> 764 cte = self.expression( 765 exp.CTE(this=self._parse_assignment(), alias=self._parse_table_alias(), scalar=True) 766 ) 767 768 return cte 769 770 def _parse_join_parts( 771 self, 772 ) -> tuple[Token | None, Token | None, Token | None]: 773 method = self._prev if self._match_set((TokenType.GLOBAL, TokenType.NATURAL)) else None 774 775 kind_pre = self._prev if self._match_set(self.JOIN_KINDS) else None 776 side = self._prev if self._match_set(self.JOIN_SIDES) else None 777 kind = self._prev if self._match_set(self.JOIN_KINDS) else None 778 779 if kind and kind.token_type == TokenType.ARRAY: 780 return method, side or kind_pre, kind 781 782 return method, side or kind, kind_pre or kind 783 784 def _parse_join( 785 self, 786 skip_join_token: bool = False, 787 parse_bracket: bool = False, 788 alias_tokens: t.Collection[TokenType] | None = None, 789 ) -> exp.Join | None: 790 join = super()._parse_join( 791 skip_join_token=skip_join_token, parse_bracket=True, alias_tokens=alias_tokens 792 ) 793 if join and join.method == "GLOBAL": 794 join.set("method", None) 795 join.set("global_", "GLOBAL") 796 797 return join 798 799 def _parse_xor(self) -> exp.Expr: 800 args = self._parse_function_args(alias=False) 801 return exp.xor(*args) if args else self.expression(exp.Xor()) 802 803 def _parse_function( 804 self, 805 functions: dict[str, t.Callable] | None = None, 806 anonymous: bool = False, 807 optional_parens: bool = True, 808 any_token: bool = False, 809 ) -> exp.Expr | None: 810 expr = super()._parse_function( 811 functions=functions, 812 anonymous=anonymous, 813 optional_parens=optional_parens, 814 any_token=any_token, 815 ) 816 817 func = expr.this if isinstance(expr, exp.Window) else expr 818 819 # Aggregate functions can be split in 2 parts: <func_name><suffix[es]> 820 parts = self._resolve_clickhouse_agg(func.name) if isinstance(func, exp.Anonymous) else None 821 822 if parts: 823 anon_func: exp.Anonymous = t.cast(exp.Anonymous, func) 824 params = self._parse_func_params(anon_func) 825 826 if len(parts[1]) > 0: 827 exp_class: Type[exp.Expr] = ( 828 exp.CombinedParameterizedAgg if params else exp.CombinedAggFunc 829 ) 830 else: 831 exp_class = exp.ParameterizedAgg if params else exp.AnonymousAggFunc 832 833 instance = exp_class(this=anon_func.this, expressions=anon_func.expressions) 834 if params: 835 instance.set("params", params) 836 func = self.expression(instance) 837 838 if isinstance(expr, exp.Window): 839 # The window's func was parsed as Anonymous in base parser, fix its 840 # type to be ClickHouse style CombinedAnonymousAggFunc / AnonymousAggFunc 841 expr.set("this", func) 842 elif params: 843 # Params have blocked super()._parse_function() from parsing the following window 844 # (if that exists) as they're standing between the function call and the window spec 845 expr = self._parse_window(func) 846 else: 847 expr = func 848 849 return expr 850 851 def _parse_func_params(self, this: exp.Func | None = None) -> list[exp.Expr] | None: 852 if self._match_pair(TokenType.R_PAREN, TokenType.L_PAREN): 853 return self._parse_csv(self._parse_lambda) 854 855 if self._match(TokenType.L_PAREN): 856 params = self._parse_csv(self._parse_lambda) 857 self._match_r_paren(this) 858 return params 859 860 return None 861 862 def _parse_group_concat(self) -> exp.GroupConcat: 863 args = self._parse_csv(self._parse_lambda) 864 params = self._parse_func_params() 865 866 if params: 867 # groupConcat(sep [, limit])(expr) 868 separator = seq_get(args, 0) 869 limit = seq_get(args, 1) 870 this: exp.Expr | None = seq_get(params, 0) 871 if limit is not None: 872 this = exp.Limit(this=this, expression=limit) 873 return self.expression(exp.GroupConcat(this=this, separator=separator)) 874 875 # groupConcat(expr) 876 return self.expression(exp.GroupConcat(this=seq_get(args, 0))) 877 878 def _parse_quantile(self, expr_type: Type[exp.Quantile]) -> exp.Quantile: 879 this = self._parse_lambda() 880 level = None 881 if self._match_pair(TokenType.R_PAREN, TokenType.L_PAREN): 882 level, this = this, self._parse_lambda() 883 return self.expression(expr_type(this=this, quantile=level or exp.Literal.number(0.5))) 884 885 def _parse_wrapped_id_vars(self, optional: bool = False) -> list[exp.Expr]: 886 return super()._parse_wrapped_id_vars(optional=True) 887 888 def _parse_column_def( 889 self, this: exp.Expr | None, computed_column: bool = True 890 ) -> exp.Expr | None: 891 if self._match(TokenType.DOT): 892 return exp.Dot(this=this, expression=self._parse_id_var()) 893 894 return super()._parse_column_def(this, computed_column=computed_column) 895 896 def _parse_primary_key( 897 self, 898 wrapped_optional: bool = False, 899 in_props: bool = False, 900 named_primary_key: bool = False, 901 ) -> exp.PrimaryKeyColumnConstraint | exp.PrimaryKey: 902 return super()._parse_primary_key( 903 wrapped_optional=wrapped_optional or in_props, 904 in_props=in_props, 905 named_primary_key=named_primary_key, 906 ) 907 908 def _parse_on_property(self) -> exp.Expr | None: 909 index = self._index 910 if self._match_text_seq("CLUSTER"): 911 this = self._parse_string() or self._parse_id_var() 912 if this: 913 return self.expression(exp.OnCluster(this=this)) 914 else: 915 self._retreat(index) 916 return None 917 918 def _parse_auto_refresh_property(self) -> exp.AutoRefreshProperty | None: 919 index = self._index - 1 920 cadence = self._prev.text.upper() if self._match_texts(("EVERY", "AFTER")) else None 921 interval = ( 922 self._parse_interval(require_interval=False, parse_function_unit=False) 923 if cadence 924 else None 925 ) 926 927 if cadence and not interval: 928 self._retreat(index) 929 return None 930 931 offset = None 932 if self._match_text_seq("OFFSET"): 933 offset = self._parse_interval(require_interval=False, parse_function_unit=False) 934 if not offset: 935 self._retreat(index) 936 return None 937 938 randomize = None 939 if self._match_text_seq("RANDOMIZE", "FOR"): 940 randomize = self._parse_interval(require_interval=False, parse_function_unit=False) 941 if not randomize: 942 self._retreat(index) 943 return None 944 945 dependencies = None 946 if self._match_text_seq("DEPENDS", "ON"): 947 dependencies = self._parse_csv(lambda: self._parse_table_parts(schema=True)) 948 if not dependencies: 949 self._retreat(index) 950 return None 951 952 if not cadence and not dependencies: 953 self._retreat(index) 954 return None 955 956 settings = self._parse_settings_property() if self._match_text_seq("SETTINGS") else None 957 958 return self.expression( 959 exp.AutoRefreshProperty( 960 this=interval, 961 cadence=cadence, 962 offset=offset, 963 randomize=randomize, 964 expressions=dependencies, 965 settings=settings, 966 append=self._match_text_seq("APPEND"), 967 ) 968 ) 969 970 def _parse_index_constraint(self, kind: str | None = None) -> exp.IndexColumnConstraint: 971 # INDEX name1 expr TYPE type1(args) GRANULARITY value 972 this = self._parse_id_var() 973 expression = self._parse_assignment() 974 975 index_type = self._match_text_seq("TYPE") and (self._parse_function() or self._parse_var()) 976 977 granularity = self._match_text_seq("GRANULARITY") and self._parse_term() 978 979 return self.expression( 980 exp.IndexColumnConstraint( 981 this=this, expression=expression, index_type=index_type, granularity=granularity 982 ) 983 ) 984 985 def _parse_partition(self) -> exp.Partition | None: 986 # https://clickhouse.com/docs/en/sql-reference/statements/alter/partition#how-to-set-partition-expression 987 if not self._match(TokenType.PARTITION): 988 return None 989 990 if self._match_text_seq("ID"): 991 # Corresponds to the PARTITION ID <string_value> syntax 992 expressions: list[exp.Expr] = [ 993 self.expression(exp.PartitionId(this=self._parse_string())) 994 ] 995 else: 996 expressions = self._parse_expressions() 997 998 return self.expression(exp.Partition(expressions=expressions)) 999 1000 def _parse_alter_table_replace(self) -> exp.Expr | None: 1001 partition = self._parse_partition() 1002 1003 if not partition or not self._match(TokenType.FROM): 1004 return None 1005 1006 return self.expression( 1007 exp.ReplacePartition(expression=partition, source=self._parse_table_parts()) 1008 ) 1009 1010 def _parse_alter_table_alter(self) -> exp.Expr | None: 1011 # MODIFY forms other than MODIFY COLUMN (SQL SECURITY, ORDER BY, TTL, COMMENT, ...) 1012 # are parsed as properties, since ALTER can now reach this path too 1013 if self._prev.text.upper() == "MODIFY" and not self._match(TokenType.COLUMN, advance=False): 1014 if properties := self._parse_properties(): 1015 return self.expression( 1016 exp.AlterModifySqlSecurity(expressions=properties.expressions) 1017 ) 1018 return None 1019 1020 # https://clickhouse.com/docs/sql-reference/statements/alter/column#modify-column 1021 alter = super()._parse_alter_table_alter() 1022 return None if self._curr else alter 1023 1024 def _parse_definer(self) -> exp.DefinerProperty | None: 1025 self._match(TokenType.EQ) 1026 if self._match(TokenType.CURRENT_USER): 1027 return exp.DefinerProperty(this=exp.Var(this=self._prev.text.upper())) 1028 return exp.DefinerProperty(this=self._parse_string() or self._parse_id_var()) 1029 1030 def _parse_projection_def(self) -> exp.ProjectionDef | None: 1031 if not self._match(TokenType.PROJECTION): 1032 return None 1033 1034 return self.expression( 1035 exp.ProjectionDef( 1036 this=self._parse_id_var(), expression=self._parse_wrapped(self._parse_statement) 1037 ) 1038 ) 1039 1040 def _parse_constraint(self) -> exp.Expr | None: 1041 return super()._parse_constraint() or self._parse_projection_def() 1042 1043 def _parse_alias(self, this: exp.Expr | None, explicit: bool = False) -> exp.Expr | None: 1044 # In clickhouse "SELECT <expr> APPLY(...)" is a query modifier, 1045 # so "APPLY" shouldn't be parsed as <expr>'s alias. However, "SELECT <expr> apply" is a valid alias 1046 if self._match_pair(TokenType.APPLY, TokenType.L_PAREN, advance=False): 1047 return this 1048 1049 return super()._parse_alias(this=this, explicit=explicit) 1050 1051 def _parse_expression(self) -> exp.Expr | None: 1052 this = super()._parse_expression() 1053 1054 # Clickhouse allows "SELECT <expr> [APPLY(func)] [...]]" modifier 1055 while self._match_pair(TokenType.APPLY, TokenType.L_PAREN): 1056 this = exp.Apply(this=this, expression=self._parse_var(any_token=True)) 1057 self._match(TokenType.R_PAREN) 1058 1059 return this 1060 1061 def _parse_columns(self) -> exp.Expr: 1062 this: exp.Expr = self.expression(exp.Columns(this=self._parse_lambda())) 1063 1064 while self._next and self._match_text_seq(")", "APPLY", "("): 1065 self._match(TokenType.R_PAREN) 1066 this = exp.Apply(this=this, expression=self._parse_var(any_token=True)) 1067 return this 1068 1069 def _parse_value(self, values: bool = True) -> exp.Tuple | None: 1070 value = super()._parse_value(values=values) 1071 if not value: 1072 return None 1073 1074 # In Clickhouse "SELECT * FROM VALUES (1, 2, 3)" generates a table with a single column, in contrast 1075 # to other dialects. For this case, we canonicalize the values into a tuple-of-tuples AST if it's not already one. 1076 # In INSERT INTO statements the same clause actually references multiple columns (opposite semantics), 1077 # but the final result is not altered by the extra parentheses. 1078 # Note: Clickhouse allows VALUES([structure], value, ...) so the branch checks for the last expression 1079 # A single-value tuple is generated as "(x)", which is parsed back into a Paren 1080 # rather than a Tuple, so it's unwrapped here to keep this rewrite idempotent 1081 expressions = value.expressions 1082 if values and not isinstance(expressions[-1], exp.Tuple): 1083 value.set( 1084 "expressions", 1085 [self.expression(exp.Tuple(expressions=[expr.unnest()])) for expr in expressions], 1086 ) 1087 1088 return value 1089 1090 def _parse_partitioned_by(self) -> exp.PartitionedByProperty: 1091 # ClickHouse allows custom expressions as partition key 1092 # https://clickhouse.com/docs/engines/table-engines/mergetree-family/custom-partitioning-key 1093 return self.expression(exp.PartitionedByProperty(this=self._parse_assignment())) 1094 1095 def _parse_detach(self) -> exp.Detach: 1096 kind = self._match_set(self.DB_CREATABLES) and self._prev.text.upper() 1097 exists = self._parse_exists() 1098 this = self._parse_table_parts() 1099 1100 return self.expression( 1101 exp.Detach( 1102 this=this, 1103 kind=kind, 1104 exists=exists, 1105 cluster=self._parse_on_property() if self._match(TokenType.ON) else None, 1106 permanent=self._match_text_seq("PERMANENTLY"), 1107 sync=self._match_text_seq("SYNC"), 1108 ) 1109 )
TIMESTAMP_TRUNC_UNITS =
{'MILLISECOND', 'MICROSECOND', 'MONTH', 'MINUTE', 'DAY', 'QUARTER', 'SECOND', 'YEAR', 'HOUR'}
DATE_DIFF_UNIT_MAPPING =
{'NANOSECOND': 'NANOSECOND', 'NANOSECONDS': 'NANOSECOND', 'NS': 'NANOSECOND', 'MICROSECOND': 'MICROSECOND', 'MICROSECONDS': 'MICROSECOND', 'US': 'MICROSECOND', 'U': 'MICROSECOND', 'MILLISECOND': 'MILLISECOND', 'MILLISECONDS': 'MILLISECOND', 'MS': 'MILLISECOND', 'SECOND': 'SECOND', 'SECONDS': 'SECOND', 'SS': 'SECOND', 'S': 'SECOND', 'MINUTE': 'MINUTE', 'MINUTES': 'MINUTE', 'MI': 'MINUTE', 'N': 'MINUTE', 'HOUR': 'HOUR', 'HOURS': 'HOUR', 'HH': 'HOUR', 'H': 'HOUR', 'DAY': 'DAY', 'DAYS': 'DAY', 'DD': 'DAY', 'D': 'DAY', 'WEEK': 'WEEK', 'WEEKS': 'WEEK', 'WK': 'WEEK', 'WW': 'WEEK', 'MONTH': 'MONTH', 'MONTHS': 'MONTH', 'MM': 'MONTH', 'M': 'MONTH', 'QUARTER': 'QUARTER', 'QUARTERS': 'QUARTER', 'QQ': 'QUARTER', 'Q': 'QUARTER', 'YEAR': 'YEAR', 'YEARS': 'YEAR', 'YYYY': 'YEAR', 'YY': 'YEAR'}
306class ClickHouseParser(parser.Parser): 307 IS_PREDICATE_PRECEDENCE = IsPredicatePrecedence.LOW 308 309 SET_OP_MODIFIERS = {"settings", "format"} 310 INTERVAL_SPANS = False 311 OPTIONAL_ALIAS_TOKEN_CTE = False 312 JOINS_HAVE_EQUAL_PRECEDENCE = True 313 314 FUNCTIONS = { 315 **{ 316 k: v 317 for k, v in parser.Parser.FUNCTIONS.items() 318 if k not in ("TRANSFORM", "APPROX_TOP_SUM") 319 }, 320 **{ 321 regexp_extract: lambda args: exp.RegexpExtract( 322 this=seq_get(args, 0), 323 expression=seq_get(args, 1), 324 group=seq_get(args, 2), 325 ) 326 for regexp_extract in ("REGEXPEXTRACT", "REGEXP_EXTRACT", "REGEXP_SUBSTR") 327 }, 328 **{f"TOSTARTOF{unit}": _build_timestamp_trunc(unit=unit) for unit in TIMESTAMP_TRUNC_UNITS}, 329 "ANY": exp.AnyValue.from_arg_list, 330 "ARRAYCOMPACT": exp.ArrayCompact.from_arg_list, 331 "ARRAYCONCAT": exp.ArrayConcat.from_arg_list, 332 "ARRAYDISTINCT": exp.ArrayDistinct.from_arg_list, 333 "ARRAYEXCEPT": exp.ArrayExcept.from_arg_list, 334 "ARRAYSUM": exp.ArraySum.from_arg_list, 335 "ARRAYMAX": _build_without_extra_args(exp.ArrayMax, "arrayMax", allow_empty=False), 336 "ARRAYMIN": _build_without_extra_args(exp.ArrayMin, "arrayMin", allow_empty=False), 337 "ARRAYREVERSE": exp.ArrayReverse.from_arg_list, 338 "ARRAYREVERSESORT": _build_array_sort("arrayReverseSort", asc=False), 339 "ARRAYSLICE": exp.ArraySlice.from_arg_list, 340 "ARRAYSORT": _build_array_sort("arraySort", asc=True), 341 "ARRAYFILTER": build_array_lambda_func(exp.ArrayFilter, "arrayFilter"), 342 "ARRAYMAP": build_array_lambda_func(exp.Transform, "arrayMap"), 343 "CURRENTDATABASE": exp.CurrentDatabase.from_arg_list, 344 "CURRENTSCHEMAS": exp.CurrentSchemas.from_arg_list, 345 "COUNTIF": _build_count_if, 346 "COUNTMATCHES": exp.RegexpCount.from_arg_list, 347 "CITYHASH64": exp.CityHash64.from_arg_list, 348 "COSINEDISTANCE": exp.CosineDistance.from_arg_list, 349 "VERSION": exp.CurrentVersion.from_arg_list, 350 "DATE_ADD": build_date_delta(exp.DateAdd, default_unit=None), 351 "DATEADD": build_date_delta(exp.DateAdd, default_unit=None), 352 **dict.fromkeys( 353 ("DATE_DIFF", "DATEDIFF", "TIMESTAMP_DIFF", "TIMESTAMPDIFF"), _build_date_diff 354 ), 355 "DATE_FORMAT": _build_datetime_format(exp.TimeToStr), 356 "DATE_SUB": build_date_delta(exp.DateSub, default_unit=None), 357 "DATESUB": build_date_delta(exp.DateSub, default_unit=None), 358 "DATETRUNC": exp.DateTrunc.from_arg_list, 359 "FORMATDATETIME": _build_datetime_format(exp.TimeToStr), 360 "GROUPBITAND": exp.BitwiseAndAgg.from_arg_list, 361 "GROUPBITOR": exp.BitwiseOrAgg.from_arg_list, 362 "GROUPBITXOR": exp.BitwiseXorAgg.from_arg_list, 363 "HAS": exp.ArrayContains.from_arg_list, 364 "ILIKE": build_like(exp.ILike), 365 "ISINFINITE": exp.IsInf.from_arg_list, 366 "JSONEXTRACTRAW": build_json_extract_path( 367 exp.JSONExtract, zero_based_indexing=False, arrow_req_json_type=True 368 ), 369 "JSONEXTRACTSTRING": build_json_extract_path( 370 exp.JSONExtractScalar, zero_based_indexing=False, arrow_req_json_type=True 371 ), 372 "LENGTH": lambda args: exp.Length(this=seq_get(args, 0), binary=True), 373 "LIKE": build_like(exp.Like), 374 "L2Distance": exp.EuclideanDistance.from_arg_list, 375 "MAP": parser.build_var_map, 376 "MATCH": exp.RegexpLike.from_arg_list, 377 "NOTLIKE": build_like(exp.Like, not_like=True), 378 "PARSEDATETIME": _build_datetime_format(exp.ParseDatetime), 379 "RANDCANONICAL": exp.Rand.from_arg_list, 380 "STR_TO_DATE": _build_str_to_date, 381 "TIMESTAMP_SUB": build_date_delta(exp.TimestampSub, default_unit=None), 382 "TIMESTAMPSUB": build_date_delta(exp.TimestampSub, default_unit=None), 383 "TIMESTAMP_ADD": build_date_delta(exp.TimestampAdd, default_unit=None), 384 "TIMESTAMPADD": build_date_delta(exp.TimestampAdd, default_unit=None), 385 **dict.fromkeys( 386 ("TODAYOFWEEK", "DAYOFWEEK", "DAY_OF_WEEK"), 387 _build_without_extra_args(exp.DayOfWeekIso, "toDayOfWeek"), 388 ), 389 "TOISOWEEK": _build_without_extra_args(exp.WeekOfYear, "toISOWeek"), 390 "TOISOYEAR": _build_without_extra_args(exp.YearOfWeekIso, "toISOYear"), 391 "TOMONDAY": _build_timestamp_trunc("WEEK"), 392 "UNIQ": exp.ApproxDistinct.from_arg_list, 393 "MD5": exp.MD5Digest.from_arg_list, 394 "SHA1": exp.SHA1Digest.from_arg_list, 395 "SHA256": lambda args: exp.SHA2Digest( 396 this=seq_get(args, 0), length=exp.Literal.number(256) 397 ), 398 "SHA512": lambda args: exp.SHA2Digest( 399 this=seq_get(args, 0), length=exp.Literal.number(512) 400 ), 401 "SPLITBYCHAR": _build_split_by_char, 402 "SPLITBYREGEXP": _build_split(exp.RegexpSplit), 403 "SPLITBYSTRING": _build_split(exp.Split), 404 "SUBSTRINGINDEX": exp.SubstringIndex.from_arg_list, 405 "TOTYPENAME": exp.Typeof.from_arg_list, 406 "TRIMBOTH": exp.Trim.from_arg_list, 407 "TRIMLEFT": parser.build_trim, 408 "TRIMRIGHT": lambda args: parser.build_trim(args, is_left=False), 409 "EDITDISTANCE": exp.Levenshtein.from_arg_list, 410 "JAROWINKLERSIMILARITY": exp.JarowinklerSimilarity.from_arg_list, 411 "LEVENSHTEINDISTANCE": exp.Levenshtein.from_arg_list, 412 "UTCTIMESTAMP": exp.UtcTimestamp.from_arg_list, 413 } 414 415 AGG_FUNCTIONS: t.ClassVar = _AGG_FUNCTIONS 416 AGG_FUNCTIONS_SUFFIXES: t.ClassVar = _AGG_FUNCTIONS_SUFFIXES 417 418 FUNC_TOKENS = { 419 *parser.Parser.FUNC_TOKENS, 420 TokenType.AND, 421 TokenType.FILE, 422 TokenType.OR, 423 TokenType.PASTE, 424 TokenType.SET, 425 TokenType.VIEW, 426 } 427 428 RESERVED_TOKENS = parser.Parser.RESERVED_TOKENS - {TokenType.SELECT} 429 430 ID_VAR_TOKENS = { 431 *parser.Parser.ID_VAR_TOKENS, 432 TokenType.LIKE, 433 } 434 435 AGG_FUNC_MAPPING: t.ClassVar = _AGG_FUNC_MAPPING 436 437 @classmethod 438 def _resolve_clickhouse_agg(cls, name: str) -> tuple[str, Sequence[str]] | None: 439 # ClickHouse allows chaining multiple combinators on aggregate functions. 440 # See https://clickhouse.com/docs/sql-reference/aggregate-functions/combinators 441 # N.B. this resolution allows any suffix stack, including ones that ClickHouse rejects 442 # syntactically such as sumMergeMerge (due to repeated adjacent suffixes) 443 444 # Until we are able to identify a 1- or 0-suffix aggregate function by name, 445 # repeatedly strip and queue suffixes (checking longer suffixes first, see comment on 446 # AGG_FUNCTIONS_SUFFIXES_SORTED). This loop only runs for 2 or more suffixes, 447 # as AGG_FUNC_MAPPING memoizes all 0- and 1-suffix 448 accumulated_suffixes: deque[str] = deque() 449 while (parts := _AGG_FUNC_MAPPING.get(name)) is None: 450 for suffix in _AGG_FUNCTIONS_SUFFIXES: 451 if name.endswith(suffix) and len(name) != len(suffix): 452 accumulated_suffixes.appendleft(suffix) 453 name = name[: -len(suffix)] 454 break 455 else: 456 return None 457 458 # We now have a 0- or 1-suffix aggregate 459 agg_func_name, inner_suffix = parts 460 if inner_suffix: 461 # this is a 1-suffix aggregate (either naturally or via repeated suffix 462 # stripping). prepend the innermost suffix. 463 accumulated_suffixes.appendleft(inner_suffix) 464 465 return (agg_func_name, accumulated_suffixes) 466 467 FUNCTION_PARSERS = { 468 **{k: v for k, v in parser.Parser.FUNCTION_PARSERS.items() if k != "MATCH"}, 469 "ARRAYJOIN": lambda self: self.expression(exp.Explode(this=self._parse_expression())), 470 "GROUPCONCAT": lambda self: self._parse_group_concat(), 471 "QUANTILE": lambda self: self._parse_quantile(exp.ApproxQuantile), 472 "QUANTILEEXACT": lambda self: self._parse_quantile(exp.Quantile), 473 "MEDIAN": lambda self: self._parse_quantile(exp.ApproxQuantile), 474 "MEDIANEXACT": lambda self: self._parse_quantile(exp.Quantile), 475 "COLUMNS": lambda self: self._parse_columns(), 476 "TUPLE": lambda self: exp.Struct.from_arg_list(self._parse_function_args(alias=True)), 477 "AND": lambda self: self._parse_connector_function(exp.and_), 478 "OR": lambda self: self._parse_connector_function(exp.or_), 479 "XOR": lambda self: self._parse_xor(), 480 "VIEW": lambda self: self.expression( 481 exp.Anonymous(this="view", expressions=[self._parse_select()]) 482 ), 483 } 484 485 PROPERTY_PARSERS = { 486 **{k: v for k, v in parser.Parser.PROPERTY_PARSERS.items() if k != "DYNAMIC"}, 487 "ENGINE": lambda self: self._parse_engine_property(), 488 "REFRESH": lambda self: self._parse_auto_refresh_property(), 489 "UUID": lambda self: self.expression(exp.UuidProperty(this=self._parse_string())), 490 } 491 492 NO_PAREN_FUNCTION_PARSERS = { 493 k: v for k, v in parser.Parser.NO_PAREN_FUNCTION_PARSERS.items() if k != "ANY" 494 } 495 496 NO_PAREN_FUNCTIONS = { 497 k: v 498 for k, v in parser.Parser.NO_PAREN_FUNCTIONS.items() 499 if k != TokenType.CURRENT_TIMESTAMP 500 } 501 502 RANGE_PARSERS = { 503 **parser.Parser.RANGE_PARSERS, 504 TokenType.GLOBAL: lambda self, this: self._parse_global_in(this), 505 } 506 507 COLUMN_OPERATORS = { 508 **{k: v for k, v in parser.Parser.COLUMN_OPERATORS.items() if k != TokenType.PLACEHOLDER}, 509 TokenType.DOTCARET: lambda self, this, field: self.expression( 510 exp.NestedJSONSelect(this=this, expression=field) 511 ), 512 } 513 514 JOIN_KINDS = { 515 *parser.Parser.JOIN_KINDS, 516 TokenType.ALL, 517 TokenType.ANY, 518 TokenType.ASOF, 519 TokenType.ARRAY, 520 TokenType.PASTE, 521 } 522 523 TABLE_ALIAS_TOKENS = parser.Parser.TABLE_ALIAS_TOKENS - { 524 TokenType.ALL, 525 TokenType.ANY, 526 TokenType.ARRAY, 527 TokenType.ASOF, 528 TokenType.FINAL, 529 TokenType.FORMAT, 530 TokenType.PASTE, 531 TokenType.SETTINGS, 532 } 533 534 ALIAS_TOKENS = parser.Parser.ALIAS_TOKENS - { 535 TokenType.FORMAT, 536 TokenType.SETTINGS, 537 } 538 539 LOG_DEFAULTS_TO_LN = True 540 541 QUERY_MODIFIER_PARSERS = { 542 **parser.Parser.QUERY_MODIFIER_PARSERS, 543 TokenType.SETTINGS: lambda self: ( 544 "settings", 545 self._advance() or self._parse_csv(self._parse_assignment), 546 ), 547 TokenType.FORMAT: lambda self: ("format", self._advance() or self._parse_id_var()), 548 } 549 550 CONSTRAINT_PARSERS = { 551 **parser.Parser.CONSTRAINT_PARSERS, 552 "INDEX": lambda self: self._parse_index_constraint(), 553 "CODEC": lambda self: self._parse_compress(), 554 "ASSUME": lambda self: self._parse_assume_constraint(), 555 } 556 557 ALTER_PARSERS = { 558 **parser.Parser.ALTER_PARSERS, 559 "MODIFY": lambda self: self._parse_alter_table_alter(), 560 "REPLACE": lambda self: self._parse_alter_table_replace(), 561 } 562 563 SCHEMA_UNNAMED_CONSTRAINTS = { 564 *parser.Parser.SCHEMA_UNNAMED_CONSTRAINTS, 565 "INDEX", 566 } - {"CHECK"} 567 568 PLACEHOLDER_PARSERS = { 569 **parser.Parser.PLACEHOLDER_PARSERS, 570 TokenType.L_BRACE: lambda self: self._parse_query_parameter(), 571 } 572 573 STATEMENT_PARSERS = { 574 **parser.Parser.STATEMENT_PARSERS, 575 TokenType.DETACH: lambda self: self._parse_detach(), 576 } 577 578 def _parse_wrapped_select_or_assignment(self) -> exp.Expr | None: 579 return self._parse_wrapped( 580 lambda: self._parse_select() or self._parse_assignment(), optional=True 581 ) 582 583 def _parse_check_constraint(self) -> exp.CheckColumnConstraint | None: 584 return self.expression( 585 exp.CheckColumnConstraint(this=self._parse_wrapped_select_or_assignment()) 586 ) 587 588 def _parse_assume_constraint(self) -> exp.AssumeColumnConstraint | None: 589 return self.expression( 590 exp.AssumeColumnConstraint(this=self._parse_wrapped_select_or_assignment()) 591 ) 592 593 def _parse_engine_property(self) -> exp.EngineProperty: 594 self._match(TokenType.EQ) 595 return self.expression( 596 exp.EngineProperty(this=self._parse_field(any_token=True, anonymous_func=True)) 597 ) 598 599 # https://clickhouse.com/docs/en/sql-reference/statements/create/function 600 def _parse_user_defined_function_expression(self) -> exp.Expr | None: 601 return self._parse_lambda() 602 603 def _parse_types( 604 self, 605 check_func: bool = False, 606 schema: bool = False, 607 allow_identifiers: bool = True, 608 with_collation: bool = False, 609 ) -> exp.Expr | None: 610 dtype = super()._parse_types( 611 check_func=check_func, 612 schema=schema, 613 allow_identifiers=allow_identifiers, 614 with_collation=with_collation, 615 ) 616 if isinstance(dtype, exp.DataType) and dtype.args.get("nullable") is not True: 617 # Mark every type as non-nullable which is ClickHouse's default, unless it's 618 # already marked as nullable. This marker helps us transpile types from other 619 # dialects to ClickHouse, so that we can e.g. produce `CAST(x AS Nullable(String))` 620 # from `CAST(x AS TEXT)`. If there is a `NULL` value in `x`, the former would 621 # fail in ClickHouse without the `Nullable` type constructor. 622 dtype.set("nullable", False) 623 624 return dtype 625 626 def _parse_extract(self) -> exp.Expr: 627 index = self._index 628 this = self._parse_bitwise() 629 if self._match(TokenType.FROM): 630 self._retreat(index) 631 return super()._parse_extract() 632 633 # We return Anonymous here because extract and regexpExtract have different semantics, 634 # so parsing extract(foo, bar) into RegexpExtract can potentially break queries. E.g., 635 # `extract('foobar', 'b')` works, but ClickHouse crashes for `regexpExtract('foobar', 'b')`. 636 # 637 # TODO: can we somehow convert the former into an equivalent `regexpExtract` call? 638 self._match(TokenType.COMMA) 639 return self.expression( 640 exp.Anonymous(this="extract", expressions=[this, self._parse_bitwise()]) 641 ) 642 643 def _parse_assignment(self) -> exp.Expr | None: 644 this = super()._parse_assignment() 645 646 if self._match(TokenType.PLACEHOLDER): 647 return self.expression( 648 exp.If( 649 this=this, 650 true=self._parse_assignment(), 651 false=self._match(TokenType.COLON) and self._parse_assignment(), 652 ) 653 ) 654 655 return this 656 657 def _parse_query_parameter(self) -> exp.Expr | None: 658 """ 659 Parse a placeholder expression like SELECT {abc: UInt32} or FROM {table: Identifier} 660 https://clickhouse.com/docs/en/sql-reference/syntax#defining-and-using-query-parameters 661 """ 662 index = self._index 663 664 this = self._parse_id_var() 665 self._match(TokenType.COLON) 666 kind = self._parse_types(check_func=False, allow_identifiers=False) or ( 667 self._match_text_seq("IDENTIFIER") and "Identifier" 668 ) 669 670 if not kind: 671 self._retreat(index) 672 return None 673 elif not self._match(TokenType.R_BRACE): 674 self.raise_error("Expecting }") 675 676 if isinstance(this, exp.Identifier) and not this.quoted: 677 this = exp.var(this.name) 678 679 return self.expression(exp.Placeholder(this=this, kind=kind)) 680 681 def _parse_bracket(self, this: exp.Expr | None = None) -> exp.Expr | None: 682 if this: 683 bracket_json_type = None 684 685 while self._match_pair(TokenType.L_BRACKET, TokenType.R_BRACKET): 686 bracket_json_type = exp.DataType( 687 this=exp.DType.ARRAY, 688 expressions=[ 689 bracket_json_type 690 or exp.DType.JSON.into_expr(dialect=self.dialect, nullable=False) 691 ], 692 nested=True, 693 ) 694 695 if bracket_json_type: 696 return self.expression(exp.JSONCast(this=this, to=bracket_json_type)) 697 698 l_brace = self._match(TokenType.L_BRACE, advance=False) 699 bracket = super()._parse_bracket(this) 700 701 if l_brace and isinstance(bracket, exp.Struct): 702 varmap = exp.VarMap(keys=exp.Array(), values=exp.Array()) 703 for expression in bracket.expressions: 704 if not isinstance(expression, exp.PropertyEQ): 705 break 706 707 varmap.args["keys"].append("expressions", exp.Literal.string(expression.name)) 708 varmap.args["values"].append("expressions", expression.expression) 709 710 return varmap 711 712 return bracket 713 714 def _parse_global_in(self, this: exp.Expr | None) -> exp.Not | exp.In | None: 715 index = self._index - 1 716 is_negated = self._match(TokenType.NOT) 717 if not self._match(TokenType.IN): 718 self._retreat(index) 719 return None 720 721 in_expr = self._parse_in(this) 722 in_expr.set("is_global", True) 723 return self.expression(exp.Not(this=in_expr)) if is_negated else in_expr 724 725 def _parse_table( 726 self, 727 schema: bool = False, 728 joins: bool = False, 729 alias_tokens: Collection[TokenType] | None = None, 730 parse_bracket: bool = False, 731 is_db_reference: bool = False, 732 parse_partition: bool = False, 733 consume_pipe: bool = False, 734 ) -> exp.Expr | None: 735 this = super()._parse_table( 736 schema=schema, 737 joins=joins, 738 alias_tokens=alias_tokens, 739 parse_bracket=parse_bracket, 740 is_db_reference=is_db_reference, 741 ) 742 743 if isinstance(this, exp.Table): 744 inner = this.this 745 alias = this.args.get("alias") 746 747 if isinstance(inner, exp.GenerateSeries) and alias and not alias.columns: 748 alias.set("columns", [exp.to_identifier("generate_series")]) 749 750 if self._match(TokenType.FINAL): 751 this = self.expression(exp.Final(this=this)) 752 753 return this 754 755 def _parse_position(self, haystack_first: bool = False) -> exp.StrPosition: 756 return super()._parse_position(haystack_first=True) 757 758 # https://clickhouse.com/docs/en/sql-reference/statements/select/with/ 759 def _parse_cte(self) -> exp.CTE | exp.FunctionSpecification | None: 760 # WITH <identifier> AS <subquery expression> 761 cte: exp.CTE | exp.FunctionSpecification | None = self._try_parse(super()._parse_cte) 762 763 if not cte: 764 # WITH <expression> AS <identifier> 765 cte = self.expression( 766 exp.CTE(this=self._parse_assignment(), alias=self._parse_table_alias(), scalar=True) 767 ) 768 769 return cte 770 771 def _parse_join_parts( 772 self, 773 ) -> tuple[Token | None, Token | None, Token | None]: 774 method = self._prev if self._match_set((TokenType.GLOBAL, TokenType.NATURAL)) else None 775 776 kind_pre = self._prev if self._match_set(self.JOIN_KINDS) else None 777 side = self._prev if self._match_set(self.JOIN_SIDES) else None 778 kind = self._prev if self._match_set(self.JOIN_KINDS) else None 779 780 if kind and kind.token_type == TokenType.ARRAY: 781 return method, side or kind_pre, kind 782 783 return method, side or kind, kind_pre or kind 784 785 def _parse_join( 786 self, 787 skip_join_token: bool = False, 788 parse_bracket: bool = False, 789 alias_tokens: t.Collection[TokenType] | None = None, 790 ) -> exp.Join | None: 791 join = super()._parse_join( 792 skip_join_token=skip_join_token, parse_bracket=True, alias_tokens=alias_tokens 793 ) 794 if join and join.method == "GLOBAL": 795 join.set("method", None) 796 join.set("global_", "GLOBAL") 797 798 return join 799 800 def _parse_xor(self) -> exp.Expr: 801 args = self._parse_function_args(alias=False) 802 return exp.xor(*args) if args else self.expression(exp.Xor()) 803 804 def _parse_function( 805 self, 806 functions: dict[str, t.Callable] | None = None, 807 anonymous: bool = False, 808 optional_parens: bool = True, 809 any_token: bool = False, 810 ) -> exp.Expr | None: 811 expr = super()._parse_function( 812 functions=functions, 813 anonymous=anonymous, 814 optional_parens=optional_parens, 815 any_token=any_token, 816 ) 817 818 func = expr.this if isinstance(expr, exp.Window) else expr 819 820 # Aggregate functions can be split in 2 parts: <func_name><suffix[es]> 821 parts = self._resolve_clickhouse_agg(func.name) if isinstance(func, exp.Anonymous) else None 822 823 if parts: 824 anon_func: exp.Anonymous = t.cast(exp.Anonymous, func) 825 params = self._parse_func_params(anon_func) 826 827 if len(parts[1]) > 0: 828 exp_class: Type[exp.Expr] = ( 829 exp.CombinedParameterizedAgg if params else exp.CombinedAggFunc 830 ) 831 else: 832 exp_class = exp.ParameterizedAgg if params else exp.AnonymousAggFunc 833 834 instance = exp_class(this=anon_func.this, expressions=anon_func.expressions) 835 if params: 836 instance.set("params", params) 837 func = self.expression(instance) 838 839 if isinstance(expr, exp.Window): 840 # The window's func was parsed as Anonymous in base parser, fix its 841 # type to be ClickHouse style CombinedAnonymousAggFunc / AnonymousAggFunc 842 expr.set("this", func) 843 elif params: 844 # Params have blocked super()._parse_function() from parsing the following window 845 # (if that exists) as they're standing between the function call and the window spec 846 expr = self._parse_window(func) 847 else: 848 expr = func 849 850 return expr 851 852 def _parse_func_params(self, this: exp.Func | None = None) -> list[exp.Expr] | None: 853 if self._match_pair(TokenType.R_PAREN, TokenType.L_PAREN): 854 return self._parse_csv(self._parse_lambda) 855 856 if self._match(TokenType.L_PAREN): 857 params = self._parse_csv(self._parse_lambda) 858 self._match_r_paren(this) 859 return params 860 861 return None 862 863 def _parse_group_concat(self) -> exp.GroupConcat: 864 args = self._parse_csv(self._parse_lambda) 865 params = self._parse_func_params() 866 867 if params: 868 # groupConcat(sep [, limit])(expr) 869 separator = seq_get(args, 0) 870 limit = seq_get(args, 1) 871 this: exp.Expr | None = seq_get(params, 0) 872 if limit is not None: 873 this = exp.Limit(this=this, expression=limit) 874 return self.expression(exp.GroupConcat(this=this, separator=separator)) 875 876 # groupConcat(expr) 877 return self.expression(exp.GroupConcat(this=seq_get(args, 0))) 878 879 def _parse_quantile(self, expr_type: Type[exp.Quantile]) -> exp.Quantile: 880 this = self._parse_lambda() 881 level = None 882 if self._match_pair(TokenType.R_PAREN, TokenType.L_PAREN): 883 level, this = this, self._parse_lambda() 884 return self.expression(expr_type(this=this, quantile=level or exp.Literal.number(0.5))) 885 886 def _parse_wrapped_id_vars(self, optional: bool = False) -> list[exp.Expr]: 887 return super()._parse_wrapped_id_vars(optional=True) 888 889 def _parse_column_def( 890 self, this: exp.Expr | None, computed_column: bool = True 891 ) -> exp.Expr | None: 892 if self._match(TokenType.DOT): 893 return exp.Dot(this=this, expression=self._parse_id_var()) 894 895 return super()._parse_column_def(this, computed_column=computed_column) 896 897 def _parse_primary_key( 898 self, 899 wrapped_optional: bool = False, 900 in_props: bool = False, 901 named_primary_key: bool = False, 902 ) -> exp.PrimaryKeyColumnConstraint | exp.PrimaryKey: 903 return super()._parse_primary_key( 904 wrapped_optional=wrapped_optional or in_props, 905 in_props=in_props, 906 named_primary_key=named_primary_key, 907 ) 908 909 def _parse_on_property(self) -> exp.Expr | None: 910 index = self._index 911 if self._match_text_seq("CLUSTER"): 912 this = self._parse_string() or self._parse_id_var() 913 if this: 914 return self.expression(exp.OnCluster(this=this)) 915 else: 916 self._retreat(index) 917 return None 918 919 def _parse_auto_refresh_property(self) -> exp.AutoRefreshProperty | None: 920 index = self._index - 1 921 cadence = self._prev.text.upper() if self._match_texts(("EVERY", "AFTER")) else None 922 interval = ( 923 self._parse_interval(require_interval=False, parse_function_unit=False) 924 if cadence 925 else None 926 ) 927 928 if cadence and not interval: 929 self._retreat(index) 930 return None 931 932 offset = None 933 if self._match_text_seq("OFFSET"): 934 offset = self._parse_interval(require_interval=False, parse_function_unit=False) 935 if not offset: 936 self._retreat(index) 937 return None 938 939 randomize = None 940 if self._match_text_seq("RANDOMIZE", "FOR"): 941 randomize = self._parse_interval(require_interval=False, parse_function_unit=False) 942 if not randomize: 943 self._retreat(index) 944 return None 945 946 dependencies = None 947 if self._match_text_seq("DEPENDS", "ON"): 948 dependencies = self._parse_csv(lambda: self._parse_table_parts(schema=True)) 949 if not dependencies: 950 self._retreat(index) 951 return None 952 953 if not cadence and not dependencies: 954 self._retreat(index) 955 return None 956 957 settings = self._parse_settings_property() if self._match_text_seq("SETTINGS") else None 958 959 return self.expression( 960 exp.AutoRefreshProperty( 961 this=interval, 962 cadence=cadence, 963 offset=offset, 964 randomize=randomize, 965 expressions=dependencies, 966 settings=settings, 967 append=self._match_text_seq("APPEND"), 968 ) 969 ) 970 971 def _parse_index_constraint(self, kind: str | None = None) -> exp.IndexColumnConstraint: 972 # INDEX name1 expr TYPE type1(args) GRANULARITY value 973 this = self._parse_id_var() 974 expression = self._parse_assignment() 975 976 index_type = self._match_text_seq("TYPE") and (self._parse_function() or self._parse_var()) 977 978 granularity = self._match_text_seq("GRANULARITY") and self._parse_term() 979 980 return self.expression( 981 exp.IndexColumnConstraint( 982 this=this, expression=expression, index_type=index_type, granularity=granularity 983 ) 984 ) 985 986 def _parse_partition(self) -> exp.Partition | None: 987 # https://clickhouse.com/docs/en/sql-reference/statements/alter/partition#how-to-set-partition-expression 988 if not self._match(TokenType.PARTITION): 989 return None 990 991 if self._match_text_seq("ID"): 992 # Corresponds to the PARTITION ID <string_value> syntax 993 expressions: list[exp.Expr] = [ 994 self.expression(exp.PartitionId(this=self._parse_string())) 995 ] 996 else: 997 expressions = self._parse_expressions() 998 999 return self.expression(exp.Partition(expressions=expressions)) 1000 1001 def _parse_alter_table_replace(self) -> exp.Expr | None: 1002 partition = self._parse_partition() 1003 1004 if not partition or not self._match(TokenType.FROM): 1005 return None 1006 1007 return self.expression( 1008 exp.ReplacePartition(expression=partition, source=self._parse_table_parts()) 1009 ) 1010 1011 def _parse_alter_table_alter(self) -> exp.Expr | None: 1012 # MODIFY forms other than MODIFY COLUMN (SQL SECURITY, ORDER BY, TTL, COMMENT, ...) 1013 # are parsed as properties, since ALTER can now reach this path too 1014 if self._prev.text.upper() == "MODIFY" and not self._match(TokenType.COLUMN, advance=False): 1015 if properties := self._parse_properties(): 1016 return self.expression( 1017 exp.AlterModifySqlSecurity(expressions=properties.expressions) 1018 ) 1019 return None 1020 1021 # https://clickhouse.com/docs/sql-reference/statements/alter/column#modify-column 1022 alter = super()._parse_alter_table_alter() 1023 return None if self._curr else alter 1024 1025 def _parse_definer(self) -> exp.DefinerProperty | None: 1026 self._match(TokenType.EQ) 1027 if self._match(TokenType.CURRENT_USER): 1028 return exp.DefinerProperty(this=exp.Var(this=self._prev.text.upper())) 1029 return exp.DefinerProperty(this=self._parse_string() or self._parse_id_var()) 1030 1031 def _parse_projection_def(self) -> exp.ProjectionDef | None: 1032 if not self._match(TokenType.PROJECTION): 1033 return None 1034 1035 return self.expression( 1036 exp.ProjectionDef( 1037 this=self._parse_id_var(), expression=self._parse_wrapped(self._parse_statement) 1038 ) 1039 ) 1040 1041 def _parse_constraint(self) -> exp.Expr | None: 1042 return super()._parse_constraint() or self._parse_projection_def() 1043 1044 def _parse_alias(self, this: exp.Expr | None, explicit: bool = False) -> exp.Expr | None: 1045 # In clickhouse "SELECT <expr> APPLY(...)" is a query modifier, 1046 # so "APPLY" shouldn't be parsed as <expr>'s alias. However, "SELECT <expr> apply" is a valid alias 1047 if self._match_pair(TokenType.APPLY, TokenType.L_PAREN, advance=False): 1048 return this 1049 1050 return super()._parse_alias(this=this, explicit=explicit) 1051 1052 def _parse_expression(self) -> exp.Expr | None: 1053 this = super()._parse_expression() 1054 1055 # Clickhouse allows "SELECT <expr> [APPLY(func)] [...]]" modifier 1056 while self._match_pair(TokenType.APPLY, TokenType.L_PAREN): 1057 this = exp.Apply(this=this, expression=self._parse_var(any_token=True)) 1058 self._match(TokenType.R_PAREN) 1059 1060 return this 1061 1062 def _parse_columns(self) -> exp.Expr: 1063 this: exp.Expr = self.expression(exp.Columns(this=self._parse_lambda())) 1064 1065 while self._next and self._match_text_seq(")", "APPLY", "("): 1066 self._match(TokenType.R_PAREN) 1067 this = exp.Apply(this=this, expression=self._parse_var(any_token=True)) 1068 return this 1069 1070 def _parse_value(self, values: bool = True) -> exp.Tuple | None: 1071 value = super()._parse_value(values=values) 1072 if not value: 1073 return None 1074 1075 # In Clickhouse "SELECT * FROM VALUES (1, 2, 3)" generates a table with a single column, in contrast 1076 # to other dialects. For this case, we canonicalize the values into a tuple-of-tuples AST if it's not already one. 1077 # In INSERT INTO statements the same clause actually references multiple columns (opposite semantics), 1078 # but the final result is not altered by the extra parentheses. 1079 # Note: Clickhouse allows VALUES([structure], value, ...) so the branch checks for the last expression 1080 # A single-value tuple is generated as "(x)", which is parsed back into a Paren 1081 # rather than a Tuple, so it's unwrapped here to keep this rewrite idempotent 1082 expressions = value.expressions 1083 if values and not isinstance(expressions[-1], exp.Tuple): 1084 value.set( 1085 "expressions", 1086 [self.expression(exp.Tuple(expressions=[expr.unnest()])) for expr in expressions], 1087 ) 1088 1089 return value 1090 1091 def _parse_partitioned_by(self) -> exp.PartitionedByProperty: 1092 # ClickHouse allows custom expressions as partition key 1093 # https://clickhouse.com/docs/engines/table-engines/mergetree-family/custom-partitioning-key 1094 return self.expression(exp.PartitionedByProperty(this=self._parse_assignment())) 1095 1096 def _parse_detach(self) -> exp.Detach: 1097 kind = self._match_set(self.DB_CREATABLES) and self._prev.text.upper() 1098 exists = self._parse_exists() 1099 this = self._parse_table_parts() 1100 1101 return self.expression( 1102 exp.Detach( 1103 this=this, 1104 kind=kind, 1105 exists=exists, 1106 cluster=self._parse_on_property() if self._match(TokenType.ON) else None, 1107 permanent=self._match_text_seq("PERMANENTLY"), 1108 sync=self._match_text_seq("SYNC"), 1109 ) 1110 )
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.
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'>>, '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': <function _build_count_if>, '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': <function build_date_delta.<locals>._builder>, 'DATE_BIN': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateBin'>>, 'DATEDIFF': <function _build_date_diff>, 'DATE_DIFF': <function _build_date_diff>, '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': <function build_date_delta.<locals>._builder>, '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 _build_without_extra_args.<locals>.<lambda>>, 'DAYOFWEEK': <function _build_without_extra_args.<locals>.<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': <function ClickHouseParser.<lambda>>, '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.MD5Digest'>>, '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': <function build_var_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': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Rand'>>, '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': <function ClickHouseParser.<dictcomp>.<lambda>>, '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': <function ClickHouseParser.<dictcomp>.<lambda>>, '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.SHA1Digest'>>, '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': <function _build_str_to_date>, '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': <function build_date_delta.<locals>._builder>, 'TIMESTAMPDIFF': <function _build_date_diff>, 'TIMESTAMP_DIFF': <function _build_date_diff>, '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': <function build_date_delta.<locals>._builder>, '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'>>, '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': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.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.<locals>._builder>, '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>, 'REGEXPEXTRACT': <function ClickHouseParser.<dictcomp>.<lambda>>, 'TOSTARTOFMILLISECOND': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFMICROSECOND': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFMONTH': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFMINUTE': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFDAY': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFQUARTER': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFSECOND': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFYEAR': <function _build_timestamp_trunc.<locals>.<lambda>>, 'TOSTARTOFHOUR': <function _build_timestamp_trunc.<locals>.<lambda>>, 'ANY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.aggregate.AnyValue'>>, 'ARRAYCOMPACT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayCompact'>>, 'ARRAYCONCAT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayConcat'>>, 'ARRAYDISTINCT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayDistinct'>>, 'ARRAYEXCEPT': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayExcept'>>, 'ARRAYSUM': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySum'>>, 'ARRAYMAX': <function _build_without_extra_args.<locals>.<lambda>>, 'ARRAYMIN': <function _build_without_extra_args.<locals>.<lambda>>, 'ARRAYREVERSE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayReverse'>>, 'ARRAYREVERSESORT': <function _build_array_sort.<locals>.<lambda>>, 'ARRAYSLICE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArraySlice'>>, 'ARRAYSORT': <function _build_array_sort.<locals>.<lambda>>, 'ARRAYFILTER': <function build_array_lambda_func.<locals>._builder>, 'ARRAYMAP': <function build_array_lambda_func.<locals>._builder>, 'CURRENTDATABASE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentDatabase'>>, 'CURRENTSCHEMAS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentSchemas'>>, 'COUNTMATCHES': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.RegexpCount'>>, 'CITYHASH64': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.CityHash64'>>, 'COSINEDISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.CosineDistance'>>, 'VERSION': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.CurrentVersion'>>, 'DATEADD': <function build_date_delta.<locals>._builder>, 'DATE_FORMAT': <function _build_datetime_format.<locals>._builder>, 'DATESUB': <function build_date_delta.<locals>._builder>, 'DATETRUNC': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.DateTrunc'>>, 'FORMATDATETIME': <function _build_datetime_format.<locals>._builder>, 'GROUPBITAND': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseAndAgg'>>, 'GROUPBITOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseOrAgg'>>, 'GROUPBITXOR': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.BitwiseXorAgg'>>, 'HAS': <bound method Func.from_arg_list of <class 'sqlglot.expressions.array.ArrayContains'>>, 'ILIKE': <function build_like.<locals>._builder>, 'ISINFINITE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.IsInf'>>, 'JSONEXTRACTRAW': <function build_json_extract_path.<locals>._builder>, 'JSONEXTRACTSTRING': <function build_json_extract_path.<locals>._builder>, 'L2Distance': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.EuclideanDistance'>>, 'MATCH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.RegexpLike'>>, 'NOTLIKE': <function build_like.<locals>._builder>, 'PARSEDATETIME': <function _build_datetime_format.<locals>._builder>, 'RANDCANONICAL': <bound method Func.from_arg_list of <class 'sqlglot.expressions.functions.Rand'>>, 'TIMESTAMPSUB': <function build_date_delta.<locals>._builder>, 'TIMESTAMPADD': <function build_date_delta.<locals>._builder>, 'TODAYOFWEEK': <function _build_without_extra_args.<locals>.<lambda>>, 'TOISOWEEK': <function _build_without_extra_args.<locals>.<lambda>>, 'TOISOYEAR': <function _build_without_extra_args.<locals>.<lambda>>, 'TOMONDAY': <function _build_timestamp_trunc.<locals>.<lambda>>, 'UNIQ': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.ApproxDistinct'>>, 'SHA256': <function ClickHouseParser.<lambda>>, 'SHA512': <function ClickHouseParser.<lambda>>, 'SPLITBYCHAR': <function _build_split_by_char>, 'SPLITBYREGEXP': <function _build_split.<locals>.<lambda>>, 'SPLITBYSTRING': <function _build_split.<locals>.<lambda>>, 'SUBSTRINGINDEX': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.SubstringIndex'>>, 'TOTYPENAME': <bound method Func.from_arg_list of <class 'sqlglot.expressions.core.Typeof'>>, 'TRIMBOTH': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Trim'>>, 'TRIMLEFT': <function build_trim>, 'TRIMRIGHT': <function ClickHouseParser.<lambda>>, 'EDITDISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Levenshtein'>>, 'JAROWINKLERSIMILARITY': <bound method Func.from_arg_list of <class 'sqlglot.expressions.math.JarowinklerSimilarity'>>, 'LEVENSHTEINDISTANCE': <bound method Func.from_arg_list of <class 'sqlglot.expressions.string.Levenshtein'>>, 'UTCTIMESTAMP': <bound method Func.from_arg_list of <class 'sqlglot.expressions.temporal.UtcTimestamp'>>}
AGG_FUNCTIONS: ClassVar =
{'topKWeighted', 'topK', 'quantilesBFloat16Weighted', 'uniqCombined', 'groupBitmapXor', 'corr', 'rankCorr', 'max', 'mannWhitneyUTest', 'groupBitmapOr', 'argMax', 'sumKahan', 'groupArrayInsertAt', 'groupBitXor', 'sumCount', 'maxIntersections', 'minMap', 'quantileDeterministic', 'boundingRatio', 'quantilesInterpolatedWeighted', 'quantileTimingWeighted', 'stddevSamp', 'varPop', 'covarPop', 'quantilesTiming', 'skewPop', 'cramersV', 'simpleLinearRegression', 'groupBitOr', 'stochasticLinearRegression', 'anyHeavy', 'quantilesExactExclusive', 'quantileExactHigh', 'quantilesExact', 'quantilesExactHigh', 'intervalLengthSum', 'last_value', 'welchTTest', 'entropy', 'anyLast', 'uniq', 'any', 'min', 'quantilesTDigest', 'quantileTiming', 'groupArrayMovingSum', 'kurtSamp', 'windowFunnel', 'quantileBFloat16Weighted', 'categoricalInformationValue', 'quantiles', 'uniqCombined64', 'quantileTDigestWeighted', 'argMin', 'deltaSum', 'studentTTest', 'avg', 'groupArray', 'quantileInterpolatedWeighted', 'covarSamp', 'exponentialMovingAverage', 'quantileExactInclusive', 'groupUniqArray', 'stddevPop', 'sequenceNextNode', 'retention', 'skewSamp', 'groupArrayLast', 'stochasticLogisticRegression', 'exponentialTimeDecayedAvg', 'kolmogorovSmirnovTest', 'quantilesExactWeighted', 'count', 'groupBitAnd', 'uniqTheta', 'quantilesBFloat16', 'histogram', 'uniqExact', 'quantilesDeterministic', 'maxMap', 'quantileExactWeighted', 'maxIntersectionsPosition', 'groupArraySample', 'sequenceCount', 'avgWeighted', 'quantilesTimingWeighted', 'deltaSumTimestamp', 'quantilesTDigestWeighted', 'first_value', 'cramersVBiasCorrected', 'meanZTest', 'sequenceMatch', 'sumWithOverflow', 'kurtPop', 'uniqHLL12', 'largestTriangleThreeBuckets', 'contingency', 'quantile', 'varSamp', 'median', 'theilsU', 'groupBitmapAnd', 'sum', 'sparkBar', 'quantileExact', 'quantileTDigest', 'quantileBFloat16', 'uniqUpTo', 'sumMap', 'quantileExactLow', 'quantileGK', 'groupBitmap', 'groupConcat', 'quantilesExactLow', 'quantilesGK', 'approx_top_sum', 'groupArrayMovingAvg'}
AGG_FUNCTIONS_SUFFIXES: ClassVar =
['SimpleState', 'MergeState', 'OrDefault', 'Distinct', 'Resample', 'ArrayIf', 'ForEach', 'OrNull', 'ArgMin', 'ArgMax', 'Array', 'State', 'Merge', 'Map', 'If']
FUNC_TOKENS =
{<TokenType.AND: 35>, <TokenType.OR: 36>, <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.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.EXISTS: 281>, <TokenType.FILE: 284>, <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.NEXT: 342>, <TokenType.NOTHING: 343>, <TokenType.NULL: 345>, <TokenType.OBJECT_IDENTIFIER: 346>, <TokenType.OFFSET: 347>, <TokenType.PASTE: 364>, <TokenType.PRIMARY_KEY: 373>, <TokenType.PSEUDO_TYPE: 377>, <TokenType.RANGE: 382>, <TokenType.REPLACE: 386>, <TokenType.RIGHT: 390>, <TokenType.RLIKE: 391>, <TokenType.ROW: 395>, <TokenType.SEQUENCE: 401>, <TokenType.SET: 403>, <TokenType.SOME: 407>, <TokenType.STRUCT: 414>, <TokenType.TRUNCATE: 422>, <TokenType.UNION: 427>, <TokenType.UNNEST: 428>, <TokenType.VIEW: 435>, <TokenType.WINDOW: 441>, <TokenType.UTC_DATE: 444>, <TokenType.UTC_TIME: 445>, <TokenType.UTC_TIMESTAMP: 446>, <TokenType.OPTIMIZE: 451>}
RESERVED_TOKENS =
{<TokenType.L_PAREN: 1>, <TokenType.R_PAREN: 2>, <TokenType.L_BRACKET: 3>, <TokenType.R_BRACKET: 4>, <TokenType.L_BRACE: 5>, <TokenType.R_BRACE: 6>, <TokenType.COMMA: 7>, <TokenType.DOT: 8>, <TokenType.DASH: 9>, <TokenType.PLUS: 10>, <TokenType.COLON: 11>, <TokenType.SEMICOLON: 19>, <TokenType.STAR: 20>, <TokenType.BACKSLASH: 21>, <TokenType.SLASH: 22>, <TokenType.LT: 23>, <TokenType.MOD: 339>, <TokenType.GT: 25>, <TokenType.NOT: 27>, <TokenType.EQ: 28>, <TokenType.UNKNOWN: 222>, <TokenType.AMP: 37>, <TokenType.PIPE: 40>, <TokenType.CARET: 43>, <TokenType.TILDE: 45>, <TokenType.PLACEHOLDER: 367>, <TokenType.HASH: 49>, <TokenType.PARAMETER: 60>}
ID_VAR_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.ASOF: 234>, <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.FULL: 294>, <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.LEFT: 327>, <TokenType.LIKE: 328>, <TokenType.LIMIT: 329>, <TokenType.LIST: 330>, <TokenType.LOAD: 331>, <TokenType.LOCK: 332>, <TokenType.MAP: 333>, <TokenType.MATCH: 334>, <TokenType.MERGE: 338>, <TokenType.MODEL: 340>, <TokenType.NATURAL: 341>, <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.RIGHT: 390>, <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.WINDOW: 441>, <TokenType.UNIQUE: 443>, <TokenType.SINK: 448>, <TokenType.SOURCE: 449>, <TokenType.ANALYZE: 450>, <TokenType.OPTIMIZE: 451>, <TokenType.NAMESPACE: 452>, <TokenType.EXPORT: 453>}
AGG_FUNC_MAPPING: ClassVar =
{'topKWeightedSimpleState': ('topKWeighted', 'SimpleState'), 'topKSimpleState': ('topK', 'SimpleState'), 'quantilesBFloat16WeightedSimpleState': ('quantilesBFloat16Weighted', 'SimpleState'), 'uniqCombinedSimpleState': ('uniqCombined', 'SimpleState'), 'groupBitmapXorSimpleState': ('groupBitmapXor', 'SimpleState'), 'corrSimpleState': ('corr', 'SimpleState'), 'rankCorrSimpleState': ('rankCorr', 'SimpleState'), 'maxSimpleState': ('max', 'SimpleState'), 'mannWhitneyUTestSimpleState': ('mannWhitneyUTest', 'SimpleState'), 'groupBitmapOrSimpleState': ('groupBitmapOr', 'SimpleState'), 'argMaxSimpleState': ('argMax', 'SimpleState'), 'sumKahanSimpleState': ('sumKahan', 'SimpleState'), 'groupArrayInsertAtSimpleState': ('groupArrayInsertAt', 'SimpleState'), 'groupBitXorSimpleState': ('groupBitXor', 'SimpleState'), 'sumCountSimpleState': ('sumCount', 'SimpleState'), 'maxIntersectionsSimpleState': ('maxIntersections', 'SimpleState'), 'minMapSimpleState': ('minMap', 'SimpleState'), 'quantileDeterministicSimpleState': ('quantileDeterministic', 'SimpleState'), 'boundingRatioSimpleState': ('boundingRatio', 'SimpleState'), 'quantilesInterpolatedWeightedSimpleState': ('quantilesInterpolatedWeighted', 'SimpleState'), 'quantileTimingWeightedSimpleState': ('quantileTimingWeighted', 'SimpleState'), 'stddevSampSimpleState': ('stddevSamp', 'SimpleState'), 'varPopSimpleState': ('varPop', 'SimpleState'), 'covarPopSimpleState': ('covarPop', 'SimpleState'), 'quantilesTimingSimpleState': ('quantilesTiming', 'SimpleState'), 'skewPopSimpleState': ('skewPop', 'SimpleState'), 'cramersVSimpleState': ('cramersV', 'SimpleState'), 'simpleLinearRegressionSimpleState': ('simpleLinearRegression', 'SimpleState'), 'groupBitOrSimpleState': ('groupBitOr', 'SimpleState'), 'stochasticLinearRegressionSimpleState': ('stochasticLinearRegression', 'SimpleState'), 'anyHeavySimpleState': ('anyHeavy', 'SimpleState'), 'quantilesExactExclusiveSimpleState': ('quantilesExactExclusive', 'SimpleState'), 'quantileExactHighSimpleState': ('quantileExactHigh', 'SimpleState'), 'quantilesExactSimpleState': ('quantilesExact', 'SimpleState'), 'quantilesExactHighSimpleState': ('quantilesExactHigh', 'SimpleState'), 'intervalLengthSumSimpleState': ('intervalLengthSum', 'SimpleState'), 'last_valueSimpleState': ('last_value', 'SimpleState'), 'welchTTestSimpleState': ('welchTTest', 'SimpleState'), 'entropySimpleState': ('entropy', 'SimpleState'), 'anyLastSimpleState': ('anyLast', 'SimpleState'), 'uniqSimpleState': ('uniq', 'SimpleState'), 'anySimpleState': ('any', 'SimpleState'), 'minSimpleState': ('min', 'SimpleState'), 'quantilesTDigestSimpleState': ('quantilesTDigest', 'SimpleState'), 'quantileTimingSimpleState': ('quantileTiming', 'SimpleState'), 'groupArrayMovingSumSimpleState': ('groupArrayMovingSum', 'SimpleState'), 'kurtSampSimpleState': ('kurtSamp', 'SimpleState'), 'windowFunnelSimpleState': ('windowFunnel', 'SimpleState'), 'quantileBFloat16WeightedSimpleState': ('quantileBFloat16Weighted', 'SimpleState'), 'categoricalInformationValueSimpleState': ('categoricalInformationValue', 'SimpleState'), 'quantilesSimpleState': ('quantiles', 'SimpleState'), 'uniqCombined64SimpleState': ('uniqCombined64', 'SimpleState'), 'quantileTDigestWeightedSimpleState': ('quantileTDigestWeighted', 'SimpleState'), 'argMinSimpleState': ('argMin', 'SimpleState'), 'deltaSumSimpleState': ('deltaSum', 'SimpleState'), 'studentTTestSimpleState': ('studentTTest', 'SimpleState'), 'avgSimpleState': ('avg', 'SimpleState'), 'groupArraySimpleState': ('groupArray', 'SimpleState'), 'quantileInterpolatedWeightedSimpleState': ('quantileInterpolatedWeighted', 'SimpleState'), 'covarSampSimpleState': ('covarSamp', 'SimpleState'), 'exponentialMovingAverageSimpleState': ('exponentialMovingAverage', 'SimpleState'), 'quantileExactInclusiveSimpleState': ('quantileExactInclusive', 'SimpleState'), 'groupUniqArraySimpleState': ('groupUniqArray', 'SimpleState'), 'stddevPopSimpleState': ('stddevPop', 'SimpleState'), 'sequenceNextNodeSimpleState': ('sequenceNextNode', 'SimpleState'), 'retentionSimpleState': ('retention', 'SimpleState'), 'skewSampSimpleState': ('skewSamp', 'SimpleState'), 'groupArrayLastSimpleState': ('groupArrayLast', 'SimpleState'), 'stochasticLogisticRegressionSimpleState': ('stochasticLogisticRegression', 'SimpleState'), 'exponentialTimeDecayedAvgSimpleState': ('exponentialTimeDecayedAvg', 'SimpleState'), 'kolmogorovSmirnovTestSimpleState': ('kolmogorovSmirnovTest', 'SimpleState'), 'quantilesExactWeightedSimpleState': ('quantilesExactWeighted', 'SimpleState'), 'countSimpleState': ('count', 'SimpleState'), 'groupBitAndSimpleState': ('groupBitAnd', 'SimpleState'), 'uniqThetaSimpleState': ('uniqTheta', 'SimpleState'), 'quantilesBFloat16SimpleState': ('quantilesBFloat16', 'SimpleState'), 'histogramSimpleState': ('histogram', 'SimpleState'), 'uniqExactSimpleState': ('uniqExact', 'SimpleState'), 'quantilesDeterministicSimpleState': ('quantilesDeterministic', 'SimpleState'), 'maxMapSimpleState': ('maxMap', 'SimpleState'), 'quantileExactWeightedSimpleState': ('quantileExactWeighted', 'SimpleState'), 'maxIntersectionsPositionSimpleState': ('maxIntersectionsPosition', 'SimpleState'), 'groupArraySampleSimpleState': ('groupArraySample', 'SimpleState'), 'sequenceCountSimpleState': ('sequenceCount', 'SimpleState'), 'avgWeightedSimpleState': ('avgWeighted', 'SimpleState'), 'quantilesTimingWeightedSimpleState': ('quantilesTimingWeighted', 'SimpleState'), 'deltaSumTimestampSimpleState': ('deltaSumTimestamp', 'SimpleState'), 'quantilesTDigestWeightedSimpleState': ('quantilesTDigestWeighted', 'SimpleState'), 'first_valueSimpleState': ('first_value', 'SimpleState'), 'cramersVBiasCorrectedSimpleState': ('cramersVBiasCorrected', 'SimpleState'), 'meanZTestSimpleState': ('meanZTest', 'SimpleState'), 'sequenceMatchSimpleState': ('sequenceMatch', 'SimpleState'), 'sumWithOverflowSimpleState': ('sumWithOverflow', 'SimpleState'), 'kurtPopSimpleState': ('kurtPop', 'SimpleState'), 'uniqHLL12SimpleState': ('uniqHLL12', 'SimpleState'), 'largestTriangleThreeBucketsSimpleState': ('largestTriangleThreeBuckets', 'SimpleState'), 'contingencySimpleState': ('contingency', 'SimpleState'), 'quantileSimpleState': ('quantile', 'SimpleState'), 'varSampSimpleState': ('varSamp', 'SimpleState'), 'medianSimpleState': ('median', 'SimpleState'), 'theilsUSimpleState': ('theilsU', 'SimpleState'), 'groupBitmapAndSimpleState': ('groupBitmapAnd', 'SimpleState'), 'sumSimpleState': ('sum', 'SimpleState'), 'sparkBarSimpleState': ('sparkBar', 'SimpleState'), 'quantileExactSimpleState': ('quantileExact', 'SimpleState'), 'quantileTDigestSimpleState': ('quantileTDigest', 'SimpleState'), 'quantileBFloat16SimpleState': ('quantileBFloat16', 'SimpleState'), 'uniqUpToSimpleState': ('uniqUpTo', 'SimpleState'), 'sumMapSimpleState': ('sumMap', 'SimpleState'), 'quantileExactLowSimpleState': ('quantileExactLow', 'SimpleState'), 'quantileGKSimpleState': ('quantileGK', 'SimpleState'), 'groupBitmapSimpleState': ('groupBitmap', 'SimpleState'), 'groupConcatSimpleState': ('groupConcat', 'SimpleState'), 'quantilesExactLowSimpleState': ('quantilesExactLow', 'SimpleState'), 'quantilesGKSimpleState': ('quantilesGK', 'SimpleState'), 'approx_top_sumSimpleState': ('approx_top_sum', 'SimpleState'), 'groupArrayMovingAvgSimpleState': ('groupArrayMovingAvg', 'SimpleState'), 'topKWeightedMergeState': ('topKWeighted', 'MergeState'), 'topKMergeState': ('topK', 'MergeState'), 'quantilesBFloat16WeightedMergeState': ('quantilesBFloat16Weighted', 'MergeState'), 'uniqCombinedMergeState': ('uniqCombined', 'MergeState'), 'groupBitmapXorMergeState': ('groupBitmapXor', 'MergeState'), 'corrMergeState': ('corr', 'MergeState'), 'rankCorrMergeState': ('rankCorr', 'MergeState'), 'maxMergeState': ('max', 'MergeState'), 'mannWhitneyUTestMergeState': ('mannWhitneyUTest', 'MergeState'), 'groupBitmapOrMergeState': ('groupBitmapOr', 'MergeState'), 'argMaxMergeState': ('argMax', 'MergeState'), 'sumKahanMergeState': ('sumKahan', 'MergeState'), 'groupArrayInsertAtMergeState': ('groupArrayInsertAt', 'MergeState'), 'groupBitXorMergeState': ('groupBitXor', 'MergeState'), 'sumCountMergeState': ('sumCount', 'MergeState'), 'maxIntersectionsMergeState': ('maxIntersections', 'MergeState'), 'minMapMergeState': ('minMap', 'MergeState'), 'quantileDeterministicMergeState': ('quantileDeterministic', 'MergeState'), 'boundingRatioMergeState': ('boundingRatio', 'MergeState'), 'quantilesInterpolatedWeightedMergeState': ('quantilesInterpolatedWeighted', 'MergeState'), 'quantileTimingWeightedMergeState': ('quantileTimingWeighted', 'MergeState'), 'stddevSampMergeState': ('stddevSamp', 'MergeState'), 'varPopMergeState': ('varPop', 'MergeState'), 'covarPopMergeState': ('covarPop', 'MergeState'), 'quantilesTimingMergeState': ('quantilesTiming', 'MergeState'), 'skewPopMergeState': ('skewPop', 'MergeState'), 'cramersVMergeState': ('cramersV', 'MergeState'), 'simpleLinearRegressionMergeState': ('simpleLinearRegression', 'MergeState'), 'groupBitOrMergeState': ('groupBitOr', 'MergeState'), 'stochasticLinearRegressionMergeState': ('stochasticLinearRegression', 'MergeState'), 'anyHeavyMergeState': ('anyHeavy', 'MergeState'), 'quantilesExactExclusiveMergeState': ('quantilesExactExclusive', 'MergeState'), 'quantileExactHighMergeState': ('quantileExactHigh', 'MergeState'), 'quantilesExactMergeState': ('quantilesExact', 'MergeState'), 'quantilesExactHighMergeState': ('quantilesExactHigh', 'MergeState'), 'intervalLengthSumMergeState': ('intervalLengthSum', 'MergeState'), 'last_valueMergeState': ('last_value', 'MergeState'), 'welchTTestMergeState': ('welchTTest', 'MergeState'), 'entropyMergeState': ('entropy', 'MergeState'), 'anyLastMergeState': ('anyLast', 'MergeState'), 'uniqMergeState': ('uniq', 'MergeState'), 'anyMergeState': ('any', 'MergeState'), 'minMergeState': ('min', 'MergeState'), 'quantilesTDigestMergeState': ('quantilesTDigest', 'MergeState'), 'quantileTimingMergeState': ('quantileTiming', 'MergeState'), 'groupArrayMovingSumMergeState': ('groupArrayMovingSum', 'MergeState'), 'kurtSampMergeState': ('kurtSamp', 'MergeState'), 'windowFunnelMergeState': ('windowFunnel', 'MergeState'), 'quantileBFloat16WeightedMergeState': ('quantileBFloat16Weighted', 'MergeState'), 'categoricalInformationValueMergeState': ('categoricalInformationValue', 'MergeState'), 'quantilesMergeState': ('quantiles', 'MergeState'), 'uniqCombined64MergeState': ('uniqCombined64', 'MergeState'), 'quantileTDigestWeightedMergeState': ('quantileTDigestWeighted', 'MergeState'), 'argMinMergeState': ('argMin', 'MergeState'), 'deltaSumMergeState': ('deltaSum', 'MergeState'), 'studentTTestMergeState': ('studentTTest', 'MergeState'), 'avgMergeState': ('avg', 'MergeState'), 'groupArrayMergeState': ('groupArray', 'MergeState'), 'quantileInterpolatedWeightedMergeState': ('quantileInterpolatedWeighted', 'MergeState'), 'covarSampMergeState': ('covarSamp', 'MergeState'), 'exponentialMovingAverageMergeState': ('exponentialMovingAverage', 'MergeState'), 'quantileExactInclusiveMergeState': ('quantileExactInclusive', 'MergeState'), 'groupUniqArrayMergeState': ('groupUniqArray', 'MergeState'), 'stddevPopMergeState': ('stddevPop', 'MergeState'), 'sequenceNextNodeMergeState': ('sequenceNextNode', 'MergeState'), 'retentionMergeState': ('retention', 'MergeState'), 'skewSampMergeState': ('skewSamp', 'MergeState'), 'groupArrayLastMergeState': ('groupArrayLast', 'MergeState'), 'stochasticLogisticRegressionMergeState': ('stochasticLogisticRegression', 'MergeState'), 'exponentialTimeDecayedAvgMergeState': ('exponentialTimeDecayedAvg', 'MergeState'), 'kolmogorovSmirnovTestMergeState': ('kolmogorovSmirnovTest', 'MergeState'), 'quantilesExactWeightedMergeState': ('quantilesExactWeighted', 'MergeState'), 'countMergeState': ('count', 'MergeState'), 'groupBitAndMergeState': ('groupBitAnd', 'MergeState'), 'uniqThetaMergeState': ('uniqTheta', 'MergeState'), 'quantilesBFloat16MergeState': ('quantilesBFloat16', 'MergeState'), 'histogramMergeState': ('histogram', 'MergeState'), 'uniqExactMergeState': ('uniqExact', 'MergeState'), 'quantilesDeterministicMergeState': ('quantilesDeterministic', 'MergeState'), 'maxMapMergeState': ('maxMap', 'MergeState'), 'quantileExactWeightedMergeState': ('quantileExactWeighted', 'MergeState'), 'maxIntersectionsPositionMergeState': ('maxIntersectionsPosition', 'MergeState'), 'groupArraySampleMergeState': ('groupArraySample', 'MergeState'), 'sequenceCountMergeState': ('sequenceCount', 'MergeState'), 'avgWeightedMergeState': ('avgWeighted', 'MergeState'), 'quantilesTimingWeightedMergeState': ('quantilesTimingWeighted', 'MergeState'), 'deltaSumTimestampMergeState': ('deltaSumTimestamp', 'MergeState'), 'quantilesTDigestWeightedMergeState': ('quantilesTDigestWeighted', 'MergeState'), 'first_valueMergeState': ('first_value', 'MergeState'), 'cramersVBiasCorrectedMergeState': ('cramersVBiasCorrected', 'MergeState'), 'meanZTestMergeState': ('meanZTest', 'MergeState'), 'sequenceMatchMergeState': ('sequenceMatch', 'MergeState'), 'sumWithOverflowMergeState': ('sumWithOverflow', 'MergeState'), 'kurtPopMergeState': ('kurtPop', 'MergeState'), 'uniqHLL12MergeState': ('uniqHLL12', 'MergeState'), 'largestTriangleThreeBucketsMergeState': ('largestTriangleThreeBuckets', 'MergeState'), 'contingencyMergeState': ('contingency', 'MergeState'), 'quantileMergeState': ('quantile', 'MergeState'), 'varSampMergeState': ('varSamp', 'MergeState'), 'medianMergeState': ('median', 'MergeState'), 'theilsUMergeState': ('theilsU', 'MergeState'), 'groupBitmapAndMergeState': ('groupBitmapAnd', 'MergeState'), 'sumMergeState': ('sum', 'MergeState'), 'sparkBarMergeState': ('sparkBar', 'MergeState'), 'quantileExactMergeState': ('quantileExact', 'MergeState'), 'quantileTDigestMergeState': ('quantileTDigest', 'MergeState'), 'quantileBFloat16MergeState': ('quantileBFloat16', 'MergeState'), 'uniqUpToMergeState': ('uniqUpTo', 'MergeState'), 'sumMapMergeState': ('sumMap', 'MergeState'), 'quantileExactLowMergeState': ('quantileExactLow', 'MergeState'), 'quantileGKMergeState': ('quantileGK', 'MergeState'), 'groupBitmapMergeState': ('groupBitmap', 'MergeState'), 'groupConcatMergeState': ('groupConcat', 'MergeState'), 'quantilesExactLowMergeState': ('quantilesExactLow', 'MergeState'), 'quantilesGKMergeState': ('quantilesGK', 'MergeState'), 'approx_top_sumMergeState': ('approx_top_sum', 'MergeState'), 'groupArrayMovingAvgMergeState': ('groupArrayMovingAvg', 'MergeState'), 'topKWeightedOrDefault': ('topKWeighted', 'OrDefault'), 'topKOrDefault': ('topK', 'OrDefault'), 'quantilesBFloat16WeightedOrDefault': ('quantilesBFloat16Weighted', 'OrDefault'), 'uniqCombinedOrDefault': ('uniqCombined', 'OrDefault'), 'groupBitmapXorOrDefault': ('groupBitmapXor', 'OrDefault'), 'corrOrDefault': ('corr', 'OrDefault'), 'rankCorrOrDefault': ('rankCorr', 'OrDefault'), 'maxOrDefault': ('max', 'OrDefault'), 'mannWhitneyUTestOrDefault': ('mannWhitneyUTest', 'OrDefault'), 'groupBitmapOrOrDefault': ('groupBitmapOr', 'OrDefault'), 'argMaxOrDefault': ('argMax', 'OrDefault'), 'sumKahanOrDefault': ('sumKahan', 'OrDefault'), 'groupArrayInsertAtOrDefault': ('groupArrayInsertAt', 'OrDefault'), 'groupBitXorOrDefault': ('groupBitXor', 'OrDefault'), 'sumCountOrDefault': ('sumCount', 'OrDefault'), 'maxIntersectionsOrDefault': ('maxIntersections', 'OrDefault'), 'minMapOrDefault': ('minMap', 'OrDefault'), 'quantileDeterministicOrDefault': ('quantileDeterministic', 'OrDefault'), 'boundingRatioOrDefault': ('boundingRatio', 'OrDefault'), 'quantilesInterpolatedWeightedOrDefault': ('quantilesInterpolatedWeighted', 'OrDefault'), 'quantileTimingWeightedOrDefault': ('quantileTimingWeighted', 'OrDefault'), 'stddevSampOrDefault': ('stddevSamp', 'OrDefault'), 'varPopOrDefault': ('varPop', 'OrDefault'), 'covarPopOrDefault': ('covarPop', 'OrDefault'), 'quantilesTimingOrDefault': ('quantilesTiming', 'OrDefault'), 'skewPopOrDefault': ('skewPop', 'OrDefault'), 'cramersVOrDefault': ('cramersV', 'OrDefault'), 'simpleLinearRegressionOrDefault': ('simpleLinearRegression', 'OrDefault'), 'groupBitOrOrDefault': ('groupBitOr', 'OrDefault'), 'stochasticLinearRegressionOrDefault': ('stochasticLinearRegression', 'OrDefault'), 'anyHeavyOrDefault': ('anyHeavy', 'OrDefault'), 'quantilesExactExclusiveOrDefault': ('quantilesExactExclusive', 'OrDefault'), 'quantileExactHighOrDefault': ('quantileExactHigh', 'OrDefault'), 'quantilesExactOrDefault': ('quantilesExact', 'OrDefault'), 'quantilesExactHighOrDefault': ('quantilesExactHigh', 'OrDefault'), 'intervalLengthSumOrDefault': ('intervalLengthSum', 'OrDefault'), 'last_valueOrDefault': ('last_value', 'OrDefault'), 'welchTTestOrDefault': ('welchTTest', 'OrDefault'), 'entropyOrDefault': ('entropy', 'OrDefault'), 'anyLastOrDefault': ('anyLast', 'OrDefault'), 'uniqOrDefault': ('uniq', 'OrDefault'), 'anyOrDefault': ('any', 'OrDefault'), 'minOrDefault': ('min', 'OrDefault'), 'quantilesTDigestOrDefault': ('quantilesTDigest', 'OrDefault'), 'quantileTimingOrDefault': ('quantileTiming', 'OrDefault'), 'groupArrayMovingSumOrDefault': ('groupArrayMovingSum', 'OrDefault'), 'kurtSampOrDefault': ('kurtSamp', 'OrDefault'), 'windowFunnelOrDefault': ('windowFunnel', 'OrDefault'), 'quantileBFloat16WeightedOrDefault': ('quantileBFloat16Weighted', 'OrDefault'), 'categoricalInformationValueOrDefault': ('categoricalInformationValue', 'OrDefault'), 'quantilesOrDefault': ('quantiles', 'OrDefault'), 'uniqCombined64OrDefault': ('uniqCombined64', 'OrDefault'), 'quantileTDigestWeightedOrDefault': ('quantileTDigestWeighted', 'OrDefault'), 'argMinOrDefault': ('argMin', 'OrDefault'), 'deltaSumOrDefault': ('deltaSum', 'OrDefault'), 'studentTTestOrDefault': ('studentTTest', 'OrDefault'), 'avgOrDefault': ('avg', 'OrDefault'), 'groupArrayOrDefault': ('groupArray', 'OrDefault'), 'quantileInterpolatedWeightedOrDefault': ('quantileInterpolatedWeighted', 'OrDefault'), 'covarSampOrDefault': ('covarSamp', 'OrDefault'), 'exponentialMovingAverageOrDefault': ('exponentialMovingAverage', 'OrDefault'), 'quantileExactInclusiveOrDefault': ('quantileExactInclusive', 'OrDefault'), 'groupUniqArrayOrDefault': ('groupUniqArray', 'OrDefault'), 'stddevPopOrDefault': ('stddevPop', 'OrDefault'), 'sequenceNextNodeOrDefault': ('sequenceNextNode', 'OrDefault'), 'retentionOrDefault': ('retention', 'OrDefault'), 'skewSampOrDefault': ('skewSamp', 'OrDefault'), 'groupArrayLastOrDefault': ('groupArrayLast', 'OrDefault'), 'stochasticLogisticRegressionOrDefault': ('stochasticLogisticRegression', 'OrDefault'), 'exponentialTimeDecayedAvgOrDefault': ('exponentialTimeDecayedAvg', 'OrDefault'), 'kolmogorovSmirnovTestOrDefault': ('kolmogorovSmirnovTest', 'OrDefault'), 'quantilesExactWeightedOrDefault': ('quantilesExactWeighted', 'OrDefault'), 'countOrDefault': ('count', 'OrDefault'), 'groupBitAndOrDefault': ('groupBitAnd', 'OrDefault'), 'uniqThetaOrDefault': ('uniqTheta', 'OrDefault'), 'quantilesBFloat16OrDefault': ('quantilesBFloat16', 'OrDefault'), 'histogramOrDefault': ('histogram', 'OrDefault'), 'uniqExactOrDefault': ('uniqExact', 'OrDefault'), 'quantilesDeterministicOrDefault': ('quantilesDeterministic', 'OrDefault'), 'maxMapOrDefault': ('maxMap', 'OrDefault'), 'quantileExactWeightedOrDefault': ('quantileExactWeighted', 'OrDefault'), 'maxIntersectionsPositionOrDefault': ('maxIntersectionsPosition', 'OrDefault'), 'groupArraySampleOrDefault': ('groupArraySample', 'OrDefault'), 'sequenceCountOrDefault': ('sequenceCount', 'OrDefault'), 'avgWeightedOrDefault': ('avgWeighted', 'OrDefault'), 'quantilesTimingWeightedOrDefault': ('quantilesTimingWeighted', 'OrDefault'), 'deltaSumTimestampOrDefault': ('deltaSumTimestamp', 'OrDefault'), 'quantilesTDigestWeightedOrDefault': ('quantilesTDigestWeighted', 'OrDefault'), 'first_valueOrDefault': ('first_value', 'OrDefault'), 'cramersVBiasCorrectedOrDefault': ('cramersVBiasCorrected', 'OrDefault'), 'meanZTestOrDefault': ('meanZTest', 'OrDefault'), 'sequenceMatchOrDefault': ('sequenceMatch', 'OrDefault'), 'sumWithOverflowOrDefault': ('sumWithOverflow', 'OrDefault'), 'kurtPopOrDefault': ('kurtPop', 'OrDefault'), 'uniqHLL12OrDefault': ('uniqHLL12', 'OrDefault'), 'largestTriangleThreeBucketsOrDefault': ('largestTriangleThreeBuckets', 'OrDefault'), 'contingencyOrDefault': ('contingency', 'OrDefault'), 'quantileOrDefault': ('quantile', 'OrDefault'), 'varSampOrDefault': ('varSamp', 'OrDefault'), 'medianOrDefault': ('median', 'OrDefault'), 'theilsUOrDefault': ('theilsU', 'OrDefault'), 'groupBitmapAndOrDefault': ('groupBitmapAnd', 'OrDefault'), 'sumOrDefault': ('sum', 'OrDefault'), 'sparkBarOrDefault': ('sparkBar', 'OrDefault'), 'quantileExactOrDefault': ('quantileExact', 'OrDefault'), 'quantileTDigestOrDefault': ('quantileTDigest', 'OrDefault'), 'quantileBFloat16OrDefault': ('quantileBFloat16', 'OrDefault'), 'uniqUpToOrDefault': ('uniqUpTo', 'OrDefault'), 'sumMapOrDefault': ('sumMap', 'OrDefault'), 'quantileExactLowOrDefault': ('quantileExactLow', 'OrDefault'), 'quantileGKOrDefault': ('quantileGK', 'OrDefault'), 'groupBitmapOrDefault': ('groupBitmap', 'OrDefault'), 'groupConcatOrDefault': ('groupConcat', 'OrDefault'), 'quantilesExactLowOrDefault': ('quantilesExactLow', 'OrDefault'), 'quantilesGKOrDefault': ('quantilesGK', 'OrDefault'), 'approx_top_sumOrDefault': ('approx_top_sum', 'OrDefault'), 'groupArrayMovingAvgOrDefault': ('groupArrayMovingAvg', 'OrDefault'), 'topKWeightedDistinct': ('topKWeighted', 'Distinct'), 'topKDistinct': ('topK', 'Distinct'), 'quantilesBFloat16WeightedDistinct': ('quantilesBFloat16Weighted', 'Distinct'), 'uniqCombinedDistinct': ('uniqCombined', 'Distinct'), 'groupBitmapXorDistinct': ('groupBitmapXor', 'Distinct'), 'corrDistinct': ('corr', 'Distinct'), 'rankCorrDistinct': ('rankCorr', 'Distinct'), 'maxDistinct': ('max', 'Distinct'), 'mannWhitneyUTestDistinct': ('mannWhitneyUTest', 'Distinct'), 'groupBitmapOrDistinct': ('groupBitmapOr', 'Distinct'), 'argMaxDistinct': ('argMax', 'Distinct'), 'sumKahanDistinct': ('sumKahan', 'Distinct'), 'groupArrayInsertAtDistinct': ('groupArrayInsertAt', 'Distinct'), 'groupBitXorDistinct': ('groupBitXor', 'Distinct'), 'sumCountDistinct': ('sumCount', 'Distinct'), 'maxIntersectionsDistinct': ('maxIntersections', 'Distinct'), 'minMapDistinct': ('minMap', 'Distinct'), 'quantileDeterministicDistinct': ('quantileDeterministic', 'Distinct'), 'boundingRatioDistinct': ('boundingRatio', 'Distinct'), 'quantilesInterpolatedWeightedDistinct': ('quantilesInterpolatedWeighted', 'Distinct'), 'quantileTimingWeightedDistinct': ('quantileTimingWeighted', 'Distinct'), 'stddevSampDistinct': ('stddevSamp', 'Distinct'), 'varPopDistinct': ('varPop', 'Distinct'), 'covarPopDistinct': ('covarPop', 'Distinct'), 'quantilesTimingDistinct': ('quantilesTiming', 'Distinct'), 'skewPopDistinct': ('skewPop', 'Distinct'), 'cramersVDistinct': ('cramersV', 'Distinct'), 'simpleLinearRegressionDistinct': ('simpleLinearRegression', 'Distinct'), 'groupBitOrDistinct': ('groupBitOr', 'Distinct'), 'stochasticLinearRegressionDistinct': ('stochasticLinearRegression', 'Distinct'), 'anyHeavyDistinct': ('anyHeavy', 'Distinct'), 'quantilesExactExclusiveDistinct': ('quantilesExactExclusive', 'Distinct'), 'quantileExactHighDistinct': ('quantileExactHigh', 'Distinct'), 'quantilesExactDistinct': ('quantilesExact', 'Distinct'), 'quantilesExactHighDistinct': ('quantilesExactHigh', 'Distinct'), 'intervalLengthSumDistinct': ('intervalLengthSum', 'Distinct'), 'last_valueDistinct': ('last_value', 'Distinct'), 'welchTTestDistinct': ('welchTTest', 'Distinct'), 'entropyDistinct': ('entropy', 'Distinct'), 'anyLastDistinct': ('anyLast', 'Distinct'), 'uniqDistinct': ('uniq', 'Distinct'), 'anyDistinct': ('any', 'Distinct'), 'minDistinct': ('min', 'Distinct'), 'quantilesTDigestDistinct': ('quantilesTDigest', 'Distinct'), 'quantileTimingDistinct': ('quantileTiming', 'Distinct'), 'groupArrayMovingSumDistinct': ('groupArrayMovingSum', 'Distinct'), 'kurtSampDistinct': ('kurtSamp', 'Distinct'), 'windowFunnelDistinct': ('windowFunnel', 'Distinct'), 'quantileBFloat16WeightedDistinct': ('quantileBFloat16Weighted', 'Distinct'), 'categoricalInformationValueDistinct': ('categoricalInformationValue', 'Distinct'), 'quantilesDistinct': ('quantiles', 'Distinct'), 'uniqCombined64Distinct': ('uniqCombined64', 'Distinct'), 'quantileTDigestWeightedDistinct': ('quantileTDigestWeighted', 'Distinct'), 'argMinDistinct': ('argMin', 'Distinct'), 'deltaSumDistinct': ('deltaSum', 'Distinct'), 'studentTTestDistinct': ('studentTTest', 'Distinct'), 'avgDistinct': ('avg', 'Distinct'), 'groupArrayDistinct': ('groupArray', 'Distinct'), 'quantileInterpolatedWeightedDistinct': ('quantileInterpolatedWeighted', 'Distinct'), 'covarSampDistinct': ('covarSamp', 'Distinct'), 'exponentialMovingAverageDistinct': ('exponentialMovingAverage', 'Distinct'), 'quantileExactInclusiveDistinct': ('quantileExactInclusive', 'Distinct'), 'groupUniqArrayDistinct': ('groupUniqArray', 'Distinct'), 'stddevPopDistinct': ('stddevPop', 'Distinct'), 'sequenceNextNodeDistinct': ('sequenceNextNode', 'Distinct'), 'retentionDistinct': ('retention', 'Distinct'), 'skewSampDistinct': ('skewSamp', 'Distinct'), 'groupArrayLastDistinct': ('groupArrayLast', 'Distinct'), 'stochasticLogisticRegressionDistinct': ('stochasticLogisticRegression', 'Distinct'), 'exponentialTimeDecayedAvgDistinct': ('exponentialTimeDecayedAvg', 'Distinct'), 'kolmogorovSmirnovTestDistinct': ('kolmogorovSmirnovTest', 'Distinct'), 'quantilesExactWeightedDistinct': ('quantilesExactWeighted', 'Distinct'), 'countDistinct': ('count', 'Distinct'), 'groupBitAndDistinct': ('groupBitAnd', 'Distinct'), 'uniqThetaDistinct': ('uniqTheta', 'Distinct'), 'quantilesBFloat16Distinct': ('quantilesBFloat16', 'Distinct'), 'histogramDistinct': ('histogram', 'Distinct'), 'uniqExactDistinct': ('uniqExact', 'Distinct'), 'quantilesDeterministicDistinct': ('quantilesDeterministic', 'Distinct'), 'maxMapDistinct': ('maxMap', 'Distinct'), 'quantileExactWeightedDistinct': ('quantileExactWeighted', 'Distinct'), 'maxIntersectionsPositionDistinct': ('maxIntersectionsPosition', 'Distinct'), 'groupArraySampleDistinct': ('groupArraySample', 'Distinct'), 'sequenceCountDistinct': ('sequenceCount', 'Distinct'), 'avgWeightedDistinct': ('avgWeighted', 'Distinct'), 'quantilesTimingWeightedDistinct': ('quantilesTimingWeighted', 'Distinct'), 'deltaSumTimestampDistinct': ('deltaSumTimestamp', 'Distinct'), 'quantilesTDigestWeightedDistinct': ('quantilesTDigestWeighted', 'Distinct'), 'first_valueDistinct': ('first_value', 'Distinct'), 'cramersVBiasCorrectedDistinct': ('cramersVBiasCorrected', 'Distinct'), 'meanZTestDistinct': ('meanZTest', 'Distinct'), 'sequenceMatchDistinct': ('sequenceMatch', 'Distinct'), 'sumWithOverflowDistinct': ('sumWithOverflow', 'Distinct'), 'kurtPopDistinct': ('kurtPop', 'Distinct'), 'uniqHLL12Distinct': ('uniqHLL12', 'Distinct'), 'largestTriangleThreeBucketsDistinct': ('largestTriangleThreeBuckets', 'Distinct'), 'contingencyDistinct': ('contingency', 'Distinct'), 'quantileDistinct': ('quantile', 'Distinct'), 'varSampDistinct': ('varSamp', 'Distinct'), 'medianDistinct': ('median', 'Distinct'), 'theilsUDistinct': ('theilsU', 'Distinct'), 'groupBitmapAndDistinct': ('groupBitmapAnd', 'Distinct'), 'sumDistinct': ('sum', 'Distinct'), 'sparkBarDistinct': ('sparkBar', 'Distinct'), 'quantileExactDistinct': ('quantileExact', 'Distinct'), 'quantileTDigestDistinct': ('quantileTDigest', 'Distinct'), 'quantileBFloat16Distinct': ('quantileBFloat16', 'Distinct'), 'uniqUpToDistinct': ('uniqUpTo', 'Distinct'), 'sumMapDistinct': ('sumMap', 'Distinct'), 'quantileExactLowDistinct': ('quantileExactLow', 'Distinct'), 'quantileGKDistinct': ('quantileGK', 'Distinct'), 'groupBitmapDistinct': ('groupBitmap', 'Distinct'), 'groupConcatDistinct': ('groupConcat', 'Distinct'), 'quantilesExactLowDistinct': ('quantilesExactLow', 'Distinct'), 'quantilesGKDistinct': ('quantilesGK', 'Distinct'), 'approx_top_sumDistinct': ('approx_top_sum', 'Distinct'), 'groupArrayMovingAvgDistinct': ('groupArrayMovingAvg', 'Distinct'), 'topKWeightedResample': ('topKWeighted', 'Resample'), 'topKResample': ('topK', 'Resample'), 'quantilesBFloat16WeightedResample': ('quantilesBFloat16Weighted', 'Resample'), 'uniqCombinedResample': ('uniqCombined', 'Resample'), 'groupBitmapXorResample': ('groupBitmapXor', 'Resample'), 'corrResample': ('corr', 'Resample'), 'rankCorrResample': ('rankCorr', 'Resample'), 'maxResample': ('max', 'Resample'), 'mannWhitneyUTestResample': ('mannWhitneyUTest', 'Resample'), 'groupBitmapOrResample': ('groupBitmapOr', 'Resample'), 'argMaxResample': ('argMax', 'Resample'), 'sumKahanResample': ('sumKahan', 'Resample'), 'groupArrayInsertAtResample': ('groupArrayInsertAt', 'Resample'), 'groupBitXorResample': ('groupBitXor', 'Resample'), 'sumCountResample': ('sumCount', 'Resample'), 'maxIntersectionsResample': ('maxIntersections', 'Resample'), 'minMapResample': ('minMap', 'Resample'), 'quantileDeterministicResample': ('quantileDeterministic', 'Resample'), 'boundingRatioResample': ('boundingRatio', 'Resample'), 'quantilesInterpolatedWeightedResample': ('quantilesInterpolatedWeighted', 'Resample'), 'quantileTimingWeightedResample': ('quantileTimingWeighted', 'Resample'), 'stddevSampResample': ('stddevSamp', 'Resample'), 'varPopResample': ('varPop', 'Resample'), 'covarPopResample': ('covarPop', 'Resample'), 'quantilesTimingResample': ('quantilesTiming', 'Resample'), 'skewPopResample': ('skewPop', 'Resample'), 'cramersVResample': ('cramersV', 'Resample'), 'simpleLinearRegressionResample': ('simpleLinearRegression', 'Resample'), 'groupBitOrResample': ('groupBitOr', 'Resample'), 'stochasticLinearRegressionResample': ('stochasticLinearRegression', 'Resample'), 'anyHeavyResample': ('anyHeavy', 'Resample'), 'quantilesExactExclusiveResample': ('quantilesExactExclusive', 'Resample'), 'quantileExactHighResample': ('quantileExactHigh', 'Resample'), 'quantilesExactResample': ('quantilesExact', 'Resample'), 'quantilesExactHighResample': ('quantilesExactHigh', 'Resample'), 'intervalLengthSumResample': ('intervalLengthSum', 'Resample'), 'last_valueResample': ('last_value', 'Resample'), 'welchTTestResample': ('welchTTest', 'Resample'), 'entropyResample': ('entropy', 'Resample'), 'anyLastResample': ('anyLast', 'Resample'), 'uniqResample': ('uniq', 'Resample'), 'anyResample': ('any', 'Resample'), 'minResample': ('min', 'Resample'), 'quantilesTDigestResample': ('quantilesTDigest', 'Resample'), 'quantileTimingResample': ('quantileTiming', 'Resample'), 'groupArrayMovingSumResample': ('groupArrayMovingSum', 'Resample'), 'kurtSampResample': ('kurtSamp', 'Resample'), 'windowFunnelResample': ('windowFunnel', 'Resample'), 'quantileBFloat16WeightedResample': ('quantileBFloat16Weighted', 'Resample'), 'categoricalInformationValueResample': ('categoricalInformationValue', 'Resample'), 'quantilesResample': ('quantiles', 'Resample'), 'uniqCombined64Resample': ('uniqCombined64', 'Resample'), 'quantileTDigestWeightedResample': ('quantileTDigestWeighted', 'Resample'), 'argMinResample': ('argMin', 'Resample'), 'deltaSumResample': ('deltaSum', 'Resample'), 'studentTTestResample': ('studentTTest', 'Resample'), 'avgResample': ('avg', 'Resample'), 'groupArrayResample': ('groupArray', 'Resample'), 'quantileInterpolatedWeightedResample': ('quantileInterpolatedWeighted', 'Resample'), 'covarSampResample': ('covarSamp', 'Resample'), 'exponentialMovingAverageResample': ('exponentialMovingAverage', 'Resample'), 'quantileExactInclusiveResample': ('quantileExactInclusive', 'Resample'), 'groupUniqArrayResample': ('groupUniqArray', 'Resample'), 'stddevPopResample': ('stddevPop', 'Resample'), 'sequenceNextNodeResample': ('sequenceNextNode', 'Resample'), 'retentionResample': ('retention', 'Resample'), 'skewSampResample': ('skewSamp', 'Resample'), 'groupArrayLastResample': ('groupArrayLast', 'Resample'), 'stochasticLogisticRegressionResample': ('stochasticLogisticRegression', 'Resample'), 'exponentialTimeDecayedAvgResample': ('exponentialTimeDecayedAvg', 'Resample'), 'kolmogorovSmirnovTestResample': ('kolmogorovSmirnovTest', 'Resample'), 'quantilesExactWeightedResample': ('quantilesExactWeighted', 'Resample'), 'countResample': ('count', 'Resample'), 'groupBitAndResample': ('groupBitAnd', 'Resample'), 'uniqThetaResample': ('uniqTheta', 'Resample'), 'quantilesBFloat16Resample': ('quantilesBFloat16', 'Resample'), 'histogramResample': ('histogram', 'Resample'), 'uniqExactResample': ('uniqExact', 'Resample'), 'quantilesDeterministicResample': ('quantilesDeterministic', 'Resample'), 'maxMapResample': ('maxMap', 'Resample'), 'quantileExactWeightedResample': ('quantileExactWeighted', 'Resample'), 'maxIntersectionsPositionResample': ('maxIntersectionsPosition', 'Resample'), 'groupArraySampleResample': ('groupArraySample', 'Resample'), 'sequenceCountResample': ('sequenceCount', 'Resample'), 'avgWeightedResample': ('avgWeighted', 'Resample'), 'quantilesTimingWeightedResample': ('quantilesTimingWeighted', 'Resample'), 'deltaSumTimestampResample': ('deltaSumTimestamp', 'Resample'), 'quantilesTDigestWeightedResample': ('quantilesTDigestWeighted', 'Resample'), 'first_valueResample': ('first_value', 'Resample'), 'cramersVBiasCorrectedResample': ('cramersVBiasCorrected', 'Resample'), 'meanZTestResample': ('meanZTest', 'Resample'), 'sequenceMatchResample': ('sequenceMatch', 'Resample'), 'sumWithOverflowResample': ('sumWithOverflow', 'Resample'), 'kurtPopResample': ('kurtPop', 'Resample'), 'uniqHLL12Resample': ('uniqHLL12', 'Resample'), 'largestTriangleThreeBucketsResample': ('largestTriangleThreeBuckets', 'Resample'), 'contingencyResample': ('contingency', 'Resample'), 'quantileResample': ('quantile', 'Resample'), 'varSampResample': ('varSamp', 'Resample'), 'medianResample': ('median', 'Resample'), 'theilsUResample': ('theilsU', 'Resample'), 'groupBitmapAndResample': ('groupBitmapAnd', 'Resample'), 'sumResample': ('sum', 'Resample'), 'sparkBarResample': ('sparkBar', 'Resample'), 'quantileExactResample': ('quantileExact', 'Resample'), 'quantileTDigestResample': ('quantileTDigest', 'Resample'), 'quantileBFloat16Resample': ('quantileBFloat16', 'Resample'), 'uniqUpToResample': ('uniqUpTo', 'Resample'), 'sumMapResample': ('sumMap', 'Resample'), 'quantileExactLowResample': ('quantileExactLow', 'Resample'), 'quantileGKResample': ('quantileGK', 'Resample'), 'groupBitmapResample': ('groupBitmap', 'Resample'), 'groupConcatResample': ('groupConcat', 'Resample'), 'quantilesExactLowResample': ('quantilesExactLow', 'Resample'), 'quantilesGKResample': ('quantilesGK', 'Resample'), 'approx_top_sumResample': ('approx_top_sum', 'Resample'), 'groupArrayMovingAvgResample': ('groupArrayMovingAvg', 'Resample'), 'topKWeightedArrayIf': ('topKWeighted', 'ArrayIf'), 'topKArrayIf': ('topK', 'ArrayIf'), 'quantilesBFloat16WeightedArrayIf': ('quantilesBFloat16Weighted', 'ArrayIf'), 'uniqCombinedArrayIf': ('uniqCombined', 'ArrayIf'), 'groupBitmapXorArrayIf': ('groupBitmapXor', 'ArrayIf'), 'corrArrayIf': ('corr', 'ArrayIf'), 'rankCorrArrayIf': ('rankCorr', 'ArrayIf'), 'maxArrayIf': ('max', 'ArrayIf'), 'mannWhitneyUTestArrayIf': ('mannWhitneyUTest', 'ArrayIf'), 'groupBitmapOrArrayIf': ('groupBitmapOr', 'ArrayIf'), 'argMaxArrayIf': ('argMax', 'ArrayIf'), 'sumKahanArrayIf': ('sumKahan', 'ArrayIf'), 'groupArrayInsertAtArrayIf': ('groupArrayInsertAt', 'ArrayIf'), 'groupBitXorArrayIf': ('groupBitXor', 'ArrayIf'), 'sumCountArrayIf': ('sumCount', 'ArrayIf'), 'maxIntersectionsArrayIf': ('maxIntersections', 'ArrayIf'), 'minMapArrayIf': ('minMap', 'ArrayIf'), 'quantileDeterministicArrayIf': ('quantileDeterministic', 'ArrayIf'), 'boundingRatioArrayIf': ('boundingRatio', 'ArrayIf'), 'quantilesInterpolatedWeightedArrayIf': ('quantilesInterpolatedWeighted', 'ArrayIf'), 'quantileTimingWeightedArrayIf': ('quantileTimingWeighted', 'ArrayIf'), 'stddevSampArrayIf': ('stddevSamp', 'ArrayIf'), 'varPopArrayIf': ('varPop', 'ArrayIf'), 'covarPopArrayIf': ('covarPop', 'ArrayIf'), 'quantilesTimingArrayIf': ('quantilesTiming', 'ArrayIf'), 'skewPopArrayIf': ('skewPop', 'ArrayIf'), 'cramersVArrayIf': ('cramersV', 'ArrayIf'), 'simpleLinearRegressionArrayIf': ('simpleLinearRegression', 'ArrayIf'), 'groupBitOrArrayIf': ('groupBitOr', 'ArrayIf'), 'stochasticLinearRegressionArrayIf': ('stochasticLinearRegression', 'ArrayIf'), 'anyHeavyArrayIf': ('anyHeavy', 'ArrayIf'), 'quantilesExactExclusiveArrayIf': ('quantilesExactExclusive', 'ArrayIf'), 'quantileExactHighArrayIf': ('quantileExactHigh', 'ArrayIf'), 'quantilesExactArrayIf': ('quantilesExact', 'ArrayIf'), 'quantilesExactHighArrayIf': ('quantilesExactHigh', 'ArrayIf'), 'intervalLengthSumArrayIf': ('intervalLengthSum', 'ArrayIf'), 'last_valueArrayIf': ('last_value', 'ArrayIf'), 'welchTTestArrayIf': ('welchTTest', 'ArrayIf'), 'entropyArrayIf': ('entropy', 'ArrayIf'), 'anyLastArrayIf': ('anyLast', 'ArrayIf'), 'uniqArrayIf': ('uniq', 'ArrayIf'), 'anyArrayIf': ('any', 'ArrayIf'), 'minArrayIf': ('min', 'ArrayIf'), 'quantilesTDigestArrayIf': ('quantilesTDigest', 'ArrayIf'), 'quantileTimingArrayIf': ('quantileTiming', 'ArrayIf'), 'groupArrayMovingSumArrayIf': ('groupArrayMovingSum', 'ArrayIf'), 'kurtSampArrayIf': ('kurtSamp', 'ArrayIf'), 'windowFunnelArrayIf': ('windowFunnel', 'ArrayIf'), 'quantileBFloat16WeightedArrayIf': ('quantileBFloat16Weighted', 'ArrayIf'), 'categoricalInformationValueArrayIf': ('categoricalInformationValue', 'ArrayIf'), 'quantilesArrayIf': ('quantiles', 'ArrayIf'), 'uniqCombined64ArrayIf': ('uniqCombined64', 'ArrayIf'), 'quantileTDigestWeightedArrayIf': ('quantileTDigestWeighted', 'ArrayIf'), 'argMinArrayIf': ('argMin', 'ArrayIf'), 'deltaSumArrayIf': ('deltaSum', 'ArrayIf'), 'studentTTestArrayIf': ('studentTTest', 'ArrayIf'), 'avgArrayIf': ('avg', 'ArrayIf'), 'groupArrayArrayIf': ('groupArray', 'ArrayIf'), 'quantileInterpolatedWeightedArrayIf': ('quantileInterpolatedWeighted', 'ArrayIf'), 'covarSampArrayIf': ('covarSamp', 'ArrayIf'), 'exponentialMovingAverageArrayIf': ('exponentialMovingAverage', 'ArrayIf'), 'quantileExactInclusiveArrayIf': ('quantileExactInclusive', 'ArrayIf'), 'groupUniqArrayArrayIf': ('groupUniqArray', 'ArrayIf'), 'stddevPopArrayIf': ('stddevPop', 'ArrayIf'), 'sequenceNextNodeArrayIf': ('sequenceNextNode', 'ArrayIf'), 'retentionArrayIf': ('retention', 'ArrayIf'), 'skewSampArrayIf': ('skewSamp', 'ArrayIf'), 'groupArrayLastArrayIf': ('groupArrayLast', 'ArrayIf'), 'stochasticLogisticRegressionArrayIf': ('stochasticLogisticRegression', 'ArrayIf'), 'exponentialTimeDecayedAvgArrayIf': ('exponentialTimeDecayedAvg', 'ArrayIf'), 'kolmogorovSmirnovTestArrayIf': ('kolmogorovSmirnovTest', 'ArrayIf'), 'quantilesExactWeightedArrayIf': ('quantilesExactWeighted', 'ArrayIf'), 'countArrayIf': ('count', 'ArrayIf'), 'groupBitAndArrayIf': ('groupBitAnd', 'ArrayIf'), 'uniqThetaArrayIf': ('uniqTheta', 'ArrayIf'), 'quantilesBFloat16ArrayIf': ('quantilesBFloat16', 'ArrayIf'), 'histogramArrayIf': ('histogram', 'ArrayIf'), 'uniqExactArrayIf': ('uniqExact', 'ArrayIf'), 'quantilesDeterministicArrayIf': ('quantilesDeterministic', 'ArrayIf'), 'maxMapArrayIf': ('maxMap', 'ArrayIf'), 'quantileExactWeightedArrayIf': ('quantileExactWeighted', 'ArrayIf'), 'maxIntersectionsPositionArrayIf': ('maxIntersectionsPosition', 'ArrayIf'), 'groupArraySampleArrayIf': ('groupArraySample', 'ArrayIf'), 'sequenceCountArrayIf': ('sequenceCount', 'ArrayIf'), 'avgWeightedArrayIf': ('avgWeighted', 'ArrayIf'), 'quantilesTimingWeightedArrayIf': ('quantilesTimingWeighted', 'ArrayIf'), 'deltaSumTimestampArrayIf': ('deltaSumTimestamp', 'ArrayIf'), 'quantilesTDigestWeightedArrayIf': ('quantilesTDigestWeighted', 'ArrayIf'), 'first_valueArrayIf': ('first_value', 'ArrayIf'), 'cramersVBiasCorrectedArrayIf': ('cramersVBiasCorrected', 'ArrayIf'), 'meanZTestArrayIf': ('meanZTest', 'ArrayIf'), 'sequenceMatchArrayIf': ('sequenceMatch', 'ArrayIf'), 'sumWithOverflowArrayIf': ('sumWithOverflow', 'ArrayIf'), 'kurtPopArrayIf': ('kurtPop', 'ArrayIf'), 'uniqHLL12ArrayIf': ('uniqHLL12', 'ArrayIf'), 'largestTriangleThreeBucketsArrayIf': ('largestTriangleThreeBuckets', 'ArrayIf'), 'contingencyArrayIf': ('contingency', 'ArrayIf'), 'quantileArrayIf': ('quantile', 'ArrayIf'), 'varSampArrayIf': ('varSamp', 'ArrayIf'), 'medianArrayIf': ('median', 'ArrayIf'), 'theilsUArrayIf': ('theilsU', 'ArrayIf'), 'groupBitmapAndArrayIf': ('groupBitmapAnd', 'ArrayIf'), 'sumArrayIf': ('sum', 'ArrayIf'), 'sparkBarArrayIf': ('sparkBar', 'ArrayIf'), 'quantileExactArrayIf': ('quantileExact', 'ArrayIf'), 'quantileTDigestArrayIf': ('quantileTDigest', 'ArrayIf'), 'quantileBFloat16ArrayIf': ('quantileBFloat16', 'ArrayIf'), 'uniqUpToArrayIf': ('uniqUpTo', 'ArrayIf'), 'sumMapArrayIf': ('sumMap', 'ArrayIf'), 'quantileExactLowArrayIf': ('quantileExactLow', 'ArrayIf'), 'quantileGKArrayIf': ('quantileGK', 'ArrayIf'), 'groupBitmapArrayIf': ('groupBitmap', 'ArrayIf'), 'groupConcatArrayIf': ('groupConcat', 'ArrayIf'), 'quantilesExactLowArrayIf': ('quantilesExactLow', 'ArrayIf'), 'quantilesGKArrayIf': ('quantilesGK', 'ArrayIf'), 'approx_top_sumArrayIf': ('approx_top_sum', 'ArrayIf'), 'groupArrayMovingAvgArrayIf': ('groupArrayMovingAvg', 'ArrayIf'), 'topKWeightedForEach': ('topKWeighted', 'ForEach'), 'topKForEach': ('topK', 'ForEach'), 'quantilesBFloat16WeightedForEach': ('quantilesBFloat16Weighted', 'ForEach'), 'uniqCombinedForEach': ('uniqCombined', 'ForEach'), 'groupBitmapXorForEach': ('groupBitmapXor', 'ForEach'), 'corrForEach': ('corr', 'ForEach'), 'rankCorrForEach': ('rankCorr', 'ForEach'), 'maxForEach': ('max', 'ForEach'), 'mannWhitneyUTestForEach': ('mannWhitneyUTest', 'ForEach'), 'groupBitmapOrForEach': ('groupBitmapOr', 'ForEach'), 'argMaxForEach': ('argMax', 'ForEach'), 'sumKahanForEach': ('sumKahan', 'ForEach'), 'groupArrayInsertAtForEach': ('groupArrayInsertAt', 'ForEach'), 'groupBitXorForEach': ('groupBitXor', 'ForEach'), 'sumCountForEach': ('sumCount', 'ForEach'), 'maxIntersectionsForEach': ('maxIntersections', 'ForEach'), 'minMapForEach': ('minMap', 'ForEach'), 'quantileDeterministicForEach': ('quantileDeterministic', 'ForEach'), 'boundingRatioForEach': ('boundingRatio', 'ForEach'), 'quantilesInterpolatedWeightedForEach': ('quantilesInterpolatedWeighted', 'ForEach'), 'quantileTimingWeightedForEach': ('quantileTimingWeighted', 'ForEach'), 'stddevSampForEach': ('stddevSamp', 'ForEach'), 'varPopForEach': ('varPop', 'ForEach'), 'covarPopForEach': ('covarPop', 'ForEach'), 'quantilesTimingForEach': ('quantilesTiming', 'ForEach'), 'skewPopForEach': ('skewPop', 'ForEach'), 'cramersVForEach': ('cramersV', 'ForEach'), 'simpleLinearRegressionForEach': ('simpleLinearRegression', 'ForEach'), 'groupBitOrForEach': ('groupBitOr', 'ForEach'), 'stochasticLinearRegressionForEach': ('stochasticLinearRegression', 'ForEach'), 'anyHeavyForEach': ('anyHeavy', 'ForEach'), 'quantilesExactExclusiveForEach': ('quantilesExactExclusive', 'ForEach'), 'quantileExactHighForEach': ('quantileExactHigh', 'ForEach'), 'quantilesExactForEach': ('quantilesExact', 'ForEach'), 'quantilesExactHighForEach': ('quantilesExactHigh', 'ForEach'), 'intervalLengthSumForEach': ('intervalLengthSum', 'ForEach'), 'last_valueForEach': ('last_value', 'ForEach'), 'welchTTestForEach': ('welchTTest', 'ForEach'), 'entropyForEach': ('entropy', 'ForEach'), 'anyLastForEach': ('anyLast', 'ForEach'), 'uniqForEach': ('uniq', 'ForEach'), 'anyForEach': ('any', 'ForEach'), 'minForEach': ('min', 'ForEach'), 'quantilesTDigestForEach': ('quantilesTDigest', 'ForEach'), 'quantileTimingForEach': ('quantileTiming', 'ForEach'), 'groupArrayMovingSumForEach': ('groupArrayMovingSum', 'ForEach'), 'kurtSampForEach': ('kurtSamp', 'ForEach'), 'windowFunnelForEach': ('windowFunnel', 'ForEach'), 'quantileBFloat16WeightedForEach': ('quantileBFloat16Weighted', 'ForEach'), 'categoricalInformationValueForEach': ('categoricalInformationValue', 'ForEach'), 'quantilesForEach': ('quantiles', 'ForEach'), 'uniqCombined64ForEach': ('uniqCombined64', 'ForEach'), 'quantileTDigestWeightedForEach': ('quantileTDigestWeighted', 'ForEach'), 'argMinForEach': ('argMin', 'ForEach'), 'deltaSumForEach': ('deltaSum', 'ForEach'), 'studentTTestForEach': ('studentTTest', 'ForEach'), 'avgForEach': ('avg', 'ForEach'), 'groupArrayForEach': ('groupArray', 'ForEach'), 'quantileInterpolatedWeightedForEach': ('quantileInterpolatedWeighted', 'ForEach'), 'covarSampForEach': ('covarSamp', 'ForEach'), 'exponentialMovingAverageForEach': ('exponentialMovingAverage', 'ForEach'), 'quantileExactInclusiveForEach': ('quantileExactInclusive', 'ForEach'), 'groupUniqArrayForEach': ('groupUniqArray', 'ForEach'), 'stddevPopForEach': ('stddevPop', 'ForEach'), 'sequenceNextNodeForEach': ('sequenceNextNode', 'ForEach'), 'retentionForEach': ('retention', 'ForEach'), 'skewSampForEach': ('skewSamp', 'ForEach'), 'groupArrayLastForEach': ('groupArrayLast', 'ForEach'), 'stochasticLogisticRegressionForEach': ('stochasticLogisticRegression', 'ForEach'), 'exponentialTimeDecayedAvgForEach': ('exponentialTimeDecayedAvg', 'ForEach'), 'kolmogorovSmirnovTestForEach': ('kolmogorovSmirnovTest', 'ForEach'), 'quantilesExactWeightedForEach': ('quantilesExactWeighted', 'ForEach'), 'countForEach': ('count', 'ForEach'), 'groupBitAndForEach': ('groupBitAnd', 'ForEach'), 'uniqThetaForEach': ('uniqTheta', 'ForEach'), 'quantilesBFloat16ForEach': ('quantilesBFloat16', 'ForEach'), 'histogramForEach': ('histogram', 'ForEach'), 'uniqExactForEach': ('uniqExact', 'ForEach'), 'quantilesDeterministicForEach': ('quantilesDeterministic', 'ForEach'), 'maxMapForEach': ('maxMap', 'ForEach'), 'quantileExactWeightedForEach': ('quantileExactWeighted', 'ForEach'), 'maxIntersectionsPositionForEach': ('maxIntersectionsPosition', 'ForEach'), 'groupArraySampleForEach': ('groupArraySample', 'ForEach'), 'sequenceCountForEach': ('sequenceCount', 'ForEach'), 'avgWeightedForEach': ('avgWeighted', 'ForEach'), 'quantilesTimingWeightedForEach': ('quantilesTimingWeighted', 'ForEach'), 'deltaSumTimestampForEach': ('deltaSumTimestamp', 'ForEach'), 'quantilesTDigestWeightedForEach': ('quantilesTDigestWeighted', 'ForEach'), 'first_valueForEach': ('first_value', 'ForEach'), 'cramersVBiasCorrectedForEach': ('cramersVBiasCorrected', 'ForEach'), 'meanZTestForEach': ('meanZTest', 'ForEach'), 'sequenceMatchForEach': ('sequenceMatch', 'ForEach'), 'sumWithOverflowForEach': ('sumWithOverflow', 'ForEach'), 'kurtPopForEach': ('kurtPop', 'ForEach'), 'uniqHLL12ForEach': ('uniqHLL12', 'ForEach'), 'largestTriangleThreeBucketsForEach': ('largestTriangleThreeBuckets', 'ForEach'), 'contingencyForEach': ('contingency', 'ForEach'), 'quantileForEach': ('quantile', 'ForEach'), 'varSampForEach': ('varSamp', 'ForEach'), 'medianForEach': ('median', 'ForEach'), 'theilsUForEach': ('theilsU', 'ForEach'), 'groupBitmapAndForEach': ('groupBitmapAnd', 'ForEach'), 'sumForEach': ('sum', 'ForEach'), 'sparkBarForEach': ('sparkBar', 'ForEach'), 'quantileExactForEach': ('quantileExact', 'ForEach'), 'quantileTDigestForEach': ('quantileTDigest', 'ForEach'), 'quantileBFloat16ForEach': ('quantileBFloat16', 'ForEach'), 'uniqUpToForEach': ('uniqUpTo', 'ForEach'), 'sumMapForEach': ('sumMap', 'ForEach'), 'quantileExactLowForEach': ('quantileExactLow', 'ForEach'), 'quantileGKForEach': ('quantileGK', 'ForEach'), 'groupBitmapForEach': ('groupBitmap', 'ForEach'), 'groupConcatForEach': ('groupConcat', 'ForEach'), 'quantilesExactLowForEach': ('quantilesExactLow', 'ForEach'), 'quantilesGKForEach': ('quantilesGK', 'ForEach'), 'approx_top_sumForEach': ('approx_top_sum', 'ForEach'), 'groupArrayMovingAvgForEach': ('groupArrayMovingAvg', 'ForEach'), 'topKWeightedOrNull': ('topKWeighted', 'OrNull'), 'topKOrNull': ('topK', 'OrNull'), 'quantilesBFloat16WeightedOrNull': ('quantilesBFloat16Weighted', 'OrNull'), 'uniqCombinedOrNull': ('uniqCombined', 'OrNull'), 'groupBitmapXorOrNull': ('groupBitmapXor', 'OrNull'), 'corrOrNull': ('corr', 'OrNull'), 'rankCorrOrNull': ('rankCorr', 'OrNull'), 'maxOrNull': ('max', 'OrNull'), 'mannWhitneyUTestOrNull': ('mannWhitneyUTest', 'OrNull'), 'groupBitmapOrOrNull': ('groupBitmapOr', 'OrNull'), 'argMaxOrNull': ('argMax', 'OrNull'), 'sumKahanOrNull': ('sumKahan', 'OrNull'), 'groupArrayInsertAtOrNull': ('groupArrayInsertAt', 'OrNull'), 'groupBitXorOrNull': ('groupBitXor', 'OrNull'), 'sumCountOrNull': ('sumCount', 'OrNull'), 'maxIntersectionsOrNull': ('maxIntersections', 'OrNull'), 'minMapOrNull': ('minMap', 'OrNull'), 'quantileDeterministicOrNull': ('quantileDeterministic', 'OrNull'), 'boundingRatioOrNull': ('boundingRatio', 'OrNull'), 'quantilesInterpolatedWeightedOrNull': ('quantilesInterpolatedWeighted', 'OrNull'), 'quantileTimingWeightedOrNull': ('quantileTimingWeighted', 'OrNull'), 'stddevSampOrNull': ('stddevSamp', 'OrNull'), 'varPopOrNull': ('varPop', 'OrNull'), 'covarPopOrNull': ('covarPop', 'OrNull'), 'quantilesTimingOrNull': ('quantilesTiming', 'OrNull'), 'skewPopOrNull': ('skewPop', 'OrNull'), 'cramersVOrNull': ('cramersV', 'OrNull'), 'simpleLinearRegressionOrNull': ('simpleLinearRegression', 'OrNull'), 'groupBitOrOrNull': ('groupBitOr', 'OrNull'), 'stochasticLinearRegressionOrNull': ('stochasticLinearRegression', 'OrNull'), 'anyHeavyOrNull': ('anyHeavy', 'OrNull'), 'quantilesExactExclusiveOrNull': ('quantilesExactExclusive', 'OrNull'), 'quantileExactHighOrNull': ('quantileExactHigh', 'OrNull'), 'quantilesExactOrNull': ('quantilesExact', 'OrNull'), 'quantilesExactHighOrNull': ('quantilesExactHigh', 'OrNull'), 'intervalLengthSumOrNull': ('intervalLengthSum', 'OrNull'), 'last_valueOrNull': ('last_value', 'OrNull'), 'welchTTestOrNull': ('welchTTest', 'OrNull'), 'entropyOrNull': ('entropy', 'OrNull'), 'anyLastOrNull': ('anyLast', 'OrNull'), 'uniqOrNull': ('uniq', 'OrNull'), 'anyOrNull': ('any', 'OrNull'), 'minOrNull': ('min', 'OrNull'), 'quantilesTDigestOrNull': ('quantilesTDigest', 'OrNull'), 'quantileTimingOrNull': ('quantileTiming', 'OrNull'), 'groupArrayMovingSumOrNull': ('groupArrayMovingSum', 'OrNull'), 'kurtSampOrNull': ('kurtSamp', 'OrNull'), 'windowFunnelOrNull': ('windowFunnel', 'OrNull'), 'quantileBFloat16WeightedOrNull': ('quantileBFloat16Weighted', 'OrNull'), 'categoricalInformationValueOrNull': ('categoricalInformationValue', 'OrNull'), 'quantilesOrNull': ('quantiles', 'OrNull'), 'uniqCombined64OrNull': ('uniqCombined64', 'OrNull'), 'quantileTDigestWeightedOrNull': ('quantileTDigestWeighted', 'OrNull'), 'argMinOrNull': ('argMin', 'OrNull'), 'deltaSumOrNull': ('deltaSum', 'OrNull'), 'studentTTestOrNull': ('studentTTest', 'OrNull'), 'avgOrNull': ('avg', 'OrNull'), 'groupArrayOrNull': ('groupArray', 'OrNull'), 'quantileInterpolatedWeightedOrNull': ('quantileInterpolatedWeighted', 'OrNull'), 'covarSampOrNull': ('covarSamp', 'OrNull'), 'exponentialMovingAverageOrNull': ('exponentialMovingAverage', 'OrNull'), 'quantileExactInclusiveOrNull': ('quantileExactInclusive', 'OrNull'), 'groupUniqArrayOrNull': ('groupUniqArray', 'OrNull'), 'stddevPopOrNull': ('stddevPop', 'OrNull'), 'sequenceNextNodeOrNull': ('sequenceNextNode', 'OrNull'), 'retentionOrNull': ('retention', 'OrNull'), 'skewSampOrNull': ('skewSamp', 'OrNull'), 'groupArrayLastOrNull': ('groupArrayLast', 'OrNull'), 'stochasticLogisticRegressionOrNull': ('stochasticLogisticRegression', 'OrNull'), 'exponentialTimeDecayedAvgOrNull': ('exponentialTimeDecayedAvg', 'OrNull'), 'kolmogorovSmirnovTestOrNull': ('kolmogorovSmirnovTest', 'OrNull'), 'quantilesExactWeightedOrNull': ('quantilesExactWeighted', 'OrNull'), 'countOrNull': ('count', 'OrNull'), 'groupBitAndOrNull': ('groupBitAnd', 'OrNull'), 'uniqThetaOrNull': ('uniqTheta', 'OrNull'), 'quantilesBFloat16OrNull': ('quantilesBFloat16', 'OrNull'), 'histogramOrNull': ('histogram', 'OrNull'), 'uniqExactOrNull': ('uniqExact', 'OrNull'), 'quantilesDeterministicOrNull': ('quantilesDeterministic', 'OrNull'), 'maxMapOrNull': ('maxMap', 'OrNull'), 'quantileExactWeightedOrNull': ('quantileExactWeighted', 'OrNull'), 'maxIntersectionsPositionOrNull': ('maxIntersectionsPosition', 'OrNull'), 'groupArraySampleOrNull': ('groupArraySample', 'OrNull'), 'sequenceCountOrNull': ('sequenceCount', 'OrNull'), 'avgWeightedOrNull': ('avgWeighted', 'OrNull'), 'quantilesTimingWeightedOrNull': ('quantilesTimingWeighted', 'OrNull'), 'deltaSumTimestampOrNull': ('deltaSumTimestamp', 'OrNull'), 'quantilesTDigestWeightedOrNull': ('quantilesTDigestWeighted', 'OrNull'), 'first_valueOrNull': ('first_value', 'OrNull'), 'cramersVBiasCorrectedOrNull': ('cramersVBiasCorrected', 'OrNull'), 'meanZTestOrNull': ('meanZTest', 'OrNull'), 'sequenceMatchOrNull': ('sequenceMatch', 'OrNull'), 'sumWithOverflowOrNull': ('sumWithOverflow', 'OrNull'), 'kurtPopOrNull': ('kurtPop', 'OrNull'), 'uniqHLL12OrNull': ('uniqHLL12', 'OrNull'), 'largestTriangleThreeBucketsOrNull': ('largestTriangleThreeBuckets', 'OrNull'), 'contingencyOrNull': ('contingency', 'OrNull'), 'quantileOrNull': ('quantile', 'OrNull'), 'varSampOrNull': ('varSamp', 'OrNull'), 'medianOrNull': ('median', 'OrNull'), 'theilsUOrNull': ('theilsU', 'OrNull'), 'groupBitmapAndOrNull': ('groupBitmapAnd', 'OrNull'), 'sumOrNull': ('sum', 'OrNull'), 'sparkBarOrNull': ('sparkBar', 'OrNull'), 'quantileExactOrNull': ('quantileExact', 'OrNull'), 'quantileTDigestOrNull': ('quantileTDigest', 'OrNull'), 'quantileBFloat16OrNull': ('quantileBFloat16', 'OrNull'), 'uniqUpToOrNull': ('uniqUpTo', 'OrNull'), 'sumMapOrNull': ('sumMap', 'OrNull'), 'quantileExactLowOrNull': ('quantileExactLow', 'OrNull'), 'quantileGKOrNull': ('quantileGK', 'OrNull'), 'groupBitmapOrNull': ('groupBitmap', 'OrNull'), 'groupConcatOrNull': ('groupConcat', 'OrNull'), 'quantilesExactLowOrNull': ('quantilesExactLow', 'OrNull'), 'quantilesGKOrNull': ('quantilesGK', 'OrNull'), 'approx_top_sumOrNull': ('approx_top_sum', 'OrNull'), 'groupArrayMovingAvgOrNull': ('groupArrayMovingAvg', 'OrNull'), 'topKWeightedArgMin': ('topKWeighted', 'ArgMin'), 'topKArgMin': ('topK', 'ArgMin'), 'quantilesBFloat16WeightedArgMin': ('quantilesBFloat16Weighted', 'ArgMin'), 'uniqCombinedArgMin': ('uniqCombined', 'ArgMin'), 'groupBitmapXorArgMin': ('groupBitmapXor', 'ArgMin'), 'corrArgMin': ('corr', 'ArgMin'), 'rankCorrArgMin': ('rankCorr', 'ArgMin'), 'maxArgMin': ('max', 'ArgMin'), 'mannWhitneyUTestArgMin': ('mannWhitneyUTest', 'ArgMin'), 'groupBitmapOrArgMin': ('groupBitmapOr', 'ArgMin'), 'argMaxArgMin': ('argMax', 'ArgMin'), 'sumKahanArgMin': ('sumKahan', 'ArgMin'), 'groupArrayInsertAtArgMin': ('groupArrayInsertAt', 'ArgMin'), 'groupBitXorArgMin': ('groupBitXor', 'ArgMin'), 'sumCountArgMin': ('sumCount', 'ArgMin'), 'maxIntersectionsArgMin': ('maxIntersections', 'ArgMin'), 'minMapArgMin': ('minMap', 'ArgMin'), 'quantileDeterministicArgMin': ('quantileDeterministic', 'ArgMin'), 'boundingRatioArgMin': ('boundingRatio', 'ArgMin'), 'quantilesInterpolatedWeightedArgMin': ('quantilesInterpolatedWeighted', 'ArgMin'), 'quantileTimingWeightedArgMin': ('quantileTimingWeighted', 'ArgMin'), 'stddevSampArgMin': ('stddevSamp', 'ArgMin'), 'varPopArgMin': ('varPop', 'ArgMin'), 'covarPopArgMin': ('covarPop', 'ArgMin'), 'quantilesTimingArgMin': ('quantilesTiming', 'ArgMin'), 'skewPopArgMin': ('skewPop', 'ArgMin'), 'cramersVArgMin': ('cramersV', 'ArgMin'), 'simpleLinearRegressionArgMin': ('simpleLinearRegression', 'ArgMin'), 'groupBitOrArgMin': ('groupBitOr', 'ArgMin'), 'stochasticLinearRegressionArgMin': ('stochasticLinearRegression', 'ArgMin'), 'anyHeavyArgMin': ('anyHeavy', 'ArgMin'), 'quantilesExactExclusiveArgMin': ('quantilesExactExclusive', 'ArgMin'), 'quantileExactHighArgMin': ('quantileExactHigh', 'ArgMin'), 'quantilesExactArgMin': ('quantilesExact', 'ArgMin'), 'quantilesExactHighArgMin': ('quantilesExactHigh', 'ArgMin'), 'intervalLengthSumArgMin': ('intervalLengthSum', 'ArgMin'), 'last_valueArgMin': ('last_value', 'ArgMin'), 'welchTTestArgMin': ('welchTTest', 'ArgMin'), 'entropyArgMin': ('entropy', 'ArgMin'), 'anyLastArgMin': ('anyLast', 'ArgMin'), 'uniqArgMin': ('uniq', 'ArgMin'), 'anyArgMin': ('any', 'ArgMin'), 'minArgMin': ('min', 'ArgMin'), 'quantilesTDigestArgMin': ('quantilesTDigest', 'ArgMin'), 'quantileTimingArgMin': ('quantileTiming', 'ArgMin'), 'groupArrayMovingSumArgMin': ('groupArrayMovingSum', 'ArgMin'), 'kurtSampArgMin': ('kurtSamp', 'ArgMin'), 'windowFunnelArgMin': ('windowFunnel', 'ArgMin'), 'quantileBFloat16WeightedArgMin': ('quantileBFloat16Weighted', 'ArgMin'), 'categoricalInformationValueArgMin': ('categoricalInformationValue', 'ArgMin'), 'quantilesArgMin': ('quantiles', 'ArgMin'), 'uniqCombined64ArgMin': ('uniqCombined64', 'ArgMin'), 'quantileTDigestWeightedArgMin': ('quantileTDigestWeighted', 'ArgMin'), 'argMinArgMin': ('argMin', 'ArgMin'), 'deltaSumArgMin': ('deltaSum', 'ArgMin'), 'studentTTestArgMin': ('studentTTest', 'ArgMin'), 'avgArgMin': ('avg', 'ArgMin'), 'groupArrayArgMin': ('groupArray', 'ArgMin'), 'quantileInterpolatedWeightedArgMin': ('quantileInterpolatedWeighted', 'ArgMin'), 'covarSampArgMin': ('covarSamp', 'ArgMin'), 'exponentialMovingAverageArgMin': ('exponentialMovingAverage', 'ArgMin'), 'quantileExactInclusiveArgMin': ('quantileExactInclusive', 'ArgMin'), 'groupUniqArrayArgMin': ('groupUniqArray', 'ArgMin'), 'stddevPopArgMin': ('stddevPop', 'ArgMin'), 'sequenceNextNodeArgMin': ('sequenceNextNode', 'ArgMin'), 'retentionArgMin': ('retention', 'ArgMin'), 'skewSampArgMin': ('skewSamp', 'ArgMin'), 'groupArrayLastArgMin': ('groupArrayLast', 'ArgMin'), 'stochasticLogisticRegressionArgMin': ('stochasticLogisticRegression', 'ArgMin'), 'exponentialTimeDecayedAvgArgMin': ('exponentialTimeDecayedAvg', 'ArgMin'), 'kolmogorovSmirnovTestArgMin': ('kolmogorovSmirnovTest', 'ArgMin'), 'quantilesExactWeightedArgMin': ('quantilesExactWeighted', 'ArgMin'), 'countArgMin': ('count', 'ArgMin'), 'groupBitAndArgMin': ('groupBitAnd', 'ArgMin'), 'uniqThetaArgMin': ('uniqTheta', 'ArgMin'), 'quantilesBFloat16ArgMin': ('quantilesBFloat16', 'ArgMin'), 'histogramArgMin': ('histogram', 'ArgMin'), 'uniqExactArgMin': ('uniqExact', 'ArgMin'), 'quantilesDeterministicArgMin': ('quantilesDeterministic', 'ArgMin'), 'maxMapArgMin': ('maxMap', 'ArgMin'), 'quantileExactWeightedArgMin': ('quantileExactWeighted', 'ArgMin'), 'maxIntersectionsPositionArgMin': ('maxIntersectionsPosition', 'ArgMin'), 'groupArraySampleArgMin': ('groupArraySample', 'ArgMin'), 'sequenceCountArgMin': ('sequenceCount', 'ArgMin'), 'avgWeightedArgMin': ('avgWeighted', 'ArgMin'), 'quantilesTimingWeightedArgMin': ('quantilesTimingWeighted', 'ArgMin'), 'deltaSumTimestampArgMin': ('deltaSumTimestamp', 'ArgMin'), 'quantilesTDigestWeightedArgMin': ('quantilesTDigestWeighted', 'ArgMin'), 'first_valueArgMin': ('first_value', 'ArgMin'), 'cramersVBiasCorrectedArgMin': ('cramersVBiasCorrected', 'ArgMin'), 'meanZTestArgMin': ('meanZTest', 'ArgMin'), 'sequenceMatchArgMin': ('sequenceMatch', 'ArgMin'), 'sumWithOverflowArgMin': ('sumWithOverflow', 'ArgMin'), 'kurtPopArgMin': ('kurtPop', 'ArgMin'), 'uniqHLL12ArgMin': ('uniqHLL12', 'ArgMin'), 'largestTriangleThreeBucketsArgMin': ('largestTriangleThreeBuckets', 'ArgMin'), 'contingencyArgMin': ('contingency', 'ArgMin'), 'quantileArgMin': ('quantile', 'ArgMin'), 'varSampArgMin': ('varSamp', 'ArgMin'), 'medianArgMin': ('median', 'ArgMin'), 'theilsUArgMin': ('theilsU', 'ArgMin'), 'groupBitmapAndArgMin': ('groupBitmapAnd', 'ArgMin'), 'sumArgMin': ('sum', 'ArgMin'), 'sparkBarArgMin': ('sparkBar', 'ArgMin'), 'quantileExactArgMin': ('quantileExact', 'ArgMin'), 'quantileTDigestArgMin': ('quantileTDigest', 'ArgMin'), 'quantileBFloat16ArgMin': ('quantileBFloat16', 'ArgMin'), 'uniqUpToArgMin': ('uniqUpTo', 'ArgMin'), 'sumMapArgMin': ('sumMap', 'ArgMin'), 'quantileExactLowArgMin': ('quantileExactLow', 'ArgMin'), 'quantileGKArgMin': ('quantileGK', 'ArgMin'), 'groupBitmapArgMin': ('groupBitmap', 'ArgMin'), 'groupConcatArgMin': ('groupConcat', 'ArgMin'), 'quantilesExactLowArgMin': ('quantilesExactLow', 'ArgMin'), 'quantilesGKArgMin': ('quantilesGK', 'ArgMin'), 'approx_top_sumArgMin': ('approx_top_sum', 'ArgMin'), 'groupArrayMovingAvgArgMin': ('groupArrayMovingAvg', 'ArgMin'), 'topKWeightedArgMax': ('topKWeighted', 'ArgMax'), 'topKArgMax': ('topK', 'ArgMax'), 'quantilesBFloat16WeightedArgMax': ('quantilesBFloat16Weighted', 'ArgMax'), 'uniqCombinedArgMax': ('uniqCombined', 'ArgMax'), 'groupBitmapXorArgMax': ('groupBitmapXor', 'ArgMax'), 'corrArgMax': ('corr', 'ArgMax'), 'rankCorrArgMax': ('rankCorr', 'ArgMax'), 'maxArgMax': ('max', 'ArgMax'), 'mannWhitneyUTestArgMax': ('mannWhitneyUTest', 'ArgMax'), 'groupBitmapOrArgMax': ('groupBitmapOr', 'ArgMax'), 'argMaxArgMax': ('argMax', 'ArgMax'), 'sumKahanArgMax': ('sumKahan', 'ArgMax'), 'groupArrayInsertAtArgMax': ('groupArrayInsertAt', 'ArgMax'), 'groupBitXorArgMax': ('groupBitXor', 'ArgMax'), 'sumCountArgMax': ('sumCount', 'ArgMax'), 'maxIntersectionsArgMax': ('maxIntersections', 'ArgMax'), 'minMapArgMax': ('minMap', 'ArgMax'), 'quantileDeterministicArgMax': ('quantileDeterministic', 'ArgMax'), 'boundingRatioArgMax': ('boundingRatio', 'ArgMax'), 'quantilesInterpolatedWeightedArgMax': ('quantilesInterpolatedWeighted', 'ArgMax'), 'quantileTimingWeightedArgMax': ('quantileTimingWeighted', 'ArgMax'), 'stddevSampArgMax': ('stddevSamp', 'ArgMax'), 'varPopArgMax': ('varPop', 'ArgMax'), 'covarPopArgMax': ('covarPop', 'ArgMax'), 'quantilesTimingArgMax': ('quantilesTiming', 'ArgMax'), 'skewPopArgMax': ('skewPop', 'ArgMax'), 'cramersVArgMax': ('cramersV', 'ArgMax'), 'simpleLinearRegressionArgMax': ('simpleLinearRegression', 'ArgMax'), 'groupBitOrArgMax': ('groupBitOr', 'ArgMax'), 'stochasticLinearRegressionArgMax': ('stochasticLinearRegression', 'ArgMax'), 'anyHeavyArgMax': ('anyHeavy', 'ArgMax'), 'quantilesExactExclusiveArgMax': ('quantilesExactExclusive', 'ArgMax'), 'quantileExactHighArgMax': ('quantileExactHigh', 'ArgMax'), 'quantilesExactArgMax': ('quantilesExact', 'ArgMax'), 'quantilesExactHighArgMax': ('quantilesExactHigh', 'ArgMax'), 'intervalLengthSumArgMax': ('intervalLengthSum', 'ArgMax'), 'last_valueArgMax': ('last_value', 'ArgMax'), 'welchTTestArgMax': ('welchTTest', 'ArgMax'), 'entropyArgMax': ('entropy', 'ArgMax'), 'anyLastArgMax': ('anyLast', 'ArgMax'), 'uniqArgMax': ('uniq', 'ArgMax'), 'anyArgMax': ('any', 'ArgMax'), 'minArgMax': ('min', 'ArgMax'), 'quantilesTDigestArgMax': ('quantilesTDigest', 'ArgMax'), 'quantileTimingArgMax': ('quantileTiming', 'ArgMax'), 'groupArrayMovingSumArgMax': ('groupArrayMovingSum', 'ArgMax'), 'kurtSampArgMax': ('kurtSamp', 'ArgMax'), 'windowFunnelArgMax': ('windowFunnel', 'ArgMax'), 'quantileBFloat16WeightedArgMax': ('quantileBFloat16Weighted', 'ArgMax'), 'categoricalInformationValueArgMax': ('categoricalInformationValue', 'ArgMax'), 'quantilesArgMax': ('quantiles', 'ArgMax'), 'uniqCombined64ArgMax': ('uniqCombined64', 'ArgMax'), 'quantileTDigestWeightedArgMax': ('quantileTDigestWeighted', 'ArgMax'), 'argMinArgMax': ('argMin', 'ArgMax'), 'deltaSumArgMax': ('deltaSum', 'ArgMax'), 'studentTTestArgMax': ('studentTTest', 'ArgMax'), 'avgArgMax': ('avg', 'ArgMax'), 'groupArrayArgMax': ('groupArray', 'ArgMax'), 'quantileInterpolatedWeightedArgMax': ('quantileInterpolatedWeighted', 'ArgMax'), 'covarSampArgMax': ('covarSamp', 'ArgMax'), 'exponentialMovingAverageArgMax': ('exponentialMovingAverage', 'ArgMax'), 'quantileExactInclusiveArgMax': ('quantileExactInclusive', 'ArgMax'), 'groupUniqArrayArgMax': ('groupUniqArray', 'ArgMax'), 'stddevPopArgMax': ('stddevPop', 'ArgMax'), 'sequenceNextNodeArgMax': ('sequenceNextNode', 'ArgMax'), 'retentionArgMax': ('retention', 'ArgMax'), 'skewSampArgMax': ('skewSamp', 'ArgMax'), 'groupArrayLastArgMax': ('groupArrayLast', 'ArgMax'), 'stochasticLogisticRegressionArgMax': ('stochasticLogisticRegression', 'ArgMax'), 'exponentialTimeDecayedAvgArgMax': ('exponentialTimeDecayedAvg', 'ArgMax'), 'kolmogorovSmirnovTestArgMax': ('kolmogorovSmirnovTest', 'ArgMax'), 'quantilesExactWeightedArgMax': ('quantilesExactWeighted', 'ArgMax'), 'countArgMax': ('count', 'ArgMax'), 'groupBitAndArgMax': ('groupBitAnd', 'ArgMax'), 'uniqThetaArgMax': ('uniqTheta', 'ArgMax'), 'quantilesBFloat16ArgMax': ('quantilesBFloat16', 'ArgMax'), 'histogramArgMax': ('histogram', 'ArgMax'), 'uniqExactArgMax': ('uniqExact', 'ArgMax'), 'quantilesDeterministicArgMax': ('quantilesDeterministic', 'ArgMax'), 'maxMapArgMax': ('maxMap', 'ArgMax'), 'quantileExactWeightedArgMax': ('quantileExactWeighted', 'ArgMax'), 'maxIntersectionsPositionArgMax': ('maxIntersectionsPosition', 'ArgMax'), 'groupArraySampleArgMax': ('groupArraySample', 'ArgMax'), 'sequenceCountArgMax': ('sequenceCount', 'ArgMax'), 'avgWeightedArgMax': ('avgWeighted', 'ArgMax'), 'quantilesTimingWeightedArgMax': ('quantilesTimingWeighted', 'ArgMax'), 'deltaSumTimestampArgMax': ('deltaSumTimestamp', 'ArgMax'), 'quantilesTDigestWeightedArgMax': ('quantilesTDigestWeighted', 'ArgMax'), 'first_valueArgMax': ('first_value', 'ArgMax'), 'cramersVBiasCorrectedArgMax': ('cramersVBiasCorrected', 'ArgMax'), 'meanZTestArgMax': ('meanZTest', 'ArgMax'), 'sequenceMatchArgMax': ('sequenceMatch', 'ArgMax'), 'sumWithOverflowArgMax': ('sumWithOverflow', 'ArgMax'), 'kurtPopArgMax': ('kurtPop', 'ArgMax'), 'uniqHLL12ArgMax': ('uniqHLL12', 'ArgMax'), 'largestTriangleThreeBucketsArgMax': ('largestTriangleThreeBuckets', 'ArgMax'), 'contingencyArgMax': ('contingency', 'ArgMax'), 'quantileArgMax': ('quantile', 'ArgMax'), 'varSampArgMax': ('varSamp', 'ArgMax'), 'medianArgMax': ('median', 'ArgMax'), 'theilsUArgMax': ('theilsU', 'ArgMax'), 'groupBitmapAndArgMax': ('groupBitmapAnd', 'ArgMax'), 'sumArgMax': ('sum', 'ArgMax'), 'sparkBarArgMax': ('sparkBar', 'ArgMax'), 'quantileExactArgMax': ('quantileExact', 'ArgMax'), 'quantileTDigestArgMax': ('quantileTDigest', 'ArgMax'), 'quantileBFloat16ArgMax': ('quantileBFloat16', 'ArgMax'), 'uniqUpToArgMax': ('uniqUpTo', 'ArgMax'), 'sumMapArgMax': ('sumMap', 'ArgMax'), 'quantileExactLowArgMax': ('quantileExactLow', 'ArgMax'), 'quantileGKArgMax': ('quantileGK', 'ArgMax'), 'groupBitmapArgMax': ('groupBitmap', 'ArgMax'), 'groupConcatArgMax': ('groupConcat', 'ArgMax'), 'quantilesExactLowArgMax': ('quantilesExactLow', 'ArgMax'), 'quantilesGKArgMax': ('quantilesGK', 'ArgMax'), 'approx_top_sumArgMax': ('approx_top_sum', 'ArgMax'), 'groupArrayMovingAvgArgMax': ('groupArrayMovingAvg', 'ArgMax'), 'topKWeightedArray': ('topKWeighted', 'Array'), 'topKArray': ('topK', 'Array'), 'quantilesBFloat16WeightedArray': ('quantilesBFloat16Weighted', 'Array'), 'uniqCombinedArray': ('uniqCombined', 'Array'), 'groupBitmapXorArray': ('groupBitmapXor', 'Array'), 'corrArray': ('corr', 'Array'), 'rankCorrArray': ('rankCorr', 'Array'), 'maxArray': ('max', 'Array'), 'mannWhitneyUTestArray': ('mannWhitneyUTest', 'Array'), 'groupBitmapOrArray': ('groupBitmapOr', 'Array'), 'argMaxArray': ('argMax', 'Array'), 'sumKahanArray': ('sumKahan', 'Array'), 'groupArrayInsertAtArray': ('groupArrayInsertAt', 'Array'), 'groupBitXorArray': ('groupBitXor', 'Array'), 'sumCountArray': ('sumCount', 'Array'), 'maxIntersectionsArray': ('maxIntersections', 'Array'), 'minMapArray': ('minMap', 'Array'), 'quantileDeterministicArray': ('quantileDeterministic', 'Array'), 'boundingRatioArray': ('boundingRatio', 'Array'), 'quantilesInterpolatedWeightedArray': ('quantilesInterpolatedWeighted', 'Array'), 'quantileTimingWeightedArray': ('quantileTimingWeighted', 'Array'), 'stddevSampArray': ('stddevSamp', 'Array'), 'varPopArray': ('varPop', 'Array'), 'covarPopArray': ('covarPop', 'Array'), 'quantilesTimingArray': ('quantilesTiming', 'Array'), 'skewPopArray': ('skewPop', 'Array'), 'cramersVArray': ('cramersV', 'Array'), 'simpleLinearRegressionArray': ('simpleLinearRegression', 'Array'), 'groupBitOrArray': ('groupBitOr', 'Array'), 'stochasticLinearRegressionArray': ('stochasticLinearRegression', 'Array'), 'anyHeavyArray': ('anyHeavy', 'Array'), 'quantilesExactExclusiveArray': ('quantilesExactExclusive', 'Array'), 'quantileExactHighArray': ('quantileExactHigh', 'Array'), 'quantilesExactArray': ('quantilesExact', 'Array'), 'quantilesExactHighArray': ('quantilesExactHigh', 'Array'), 'intervalLengthSumArray': ('intervalLengthSum', 'Array'), 'last_valueArray': ('last_value', 'Array'), 'welchTTestArray': ('welchTTest', 'Array'), 'entropyArray': ('entropy', 'Array'), 'anyLastArray': ('anyLast', 'Array'), 'uniqArray': ('uniq', 'Array'), 'anyArray': ('any', 'Array'), 'minArray': ('min', 'Array'), 'quantilesTDigestArray': ('quantilesTDigest', 'Array'), 'quantileTimingArray': ('quantileTiming', 'Array'), 'groupArrayMovingSumArray': ('groupArrayMovingSum', 'Array'), 'kurtSampArray': ('kurtSamp', 'Array'), 'windowFunnelArray': ('windowFunnel', 'Array'), 'quantileBFloat16WeightedArray': ('quantileBFloat16Weighted', 'Array'), 'categoricalInformationValueArray': ('categoricalInformationValue', 'Array'), 'quantilesArray': ('quantiles', 'Array'), 'uniqCombined64Array': ('uniqCombined64', 'Array'), 'quantileTDigestWeightedArray': ('quantileTDigestWeighted', 'Array'), 'argMinArray': ('argMin', 'Array'), 'deltaSumArray': ('deltaSum', 'Array'), 'studentTTestArray': ('studentTTest', 'Array'), 'avgArray': ('avg', 'Array'), 'groupArrayArray': ('groupArray', 'Array'), 'quantileInterpolatedWeightedArray': ('quantileInterpolatedWeighted', 'Array'), 'covarSampArray': ('covarSamp', 'Array'), 'exponentialMovingAverageArray': ('exponentialMovingAverage', 'Array'), 'quantileExactInclusiveArray': ('quantileExactInclusive', 'Array'), 'groupUniqArrayArray': ('groupUniqArray', 'Array'), 'stddevPopArray': ('stddevPop', 'Array'), 'sequenceNextNodeArray': ('sequenceNextNode', 'Array'), 'retentionArray': ('retention', 'Array'), 'skewSampArray': ('skewSamp', 'Array'), 'groupArrayLastArray': ('groupArrayLast', 'Array'), 'stochasticLogisticRegressionArray': ('stochasticLogisticRegression', 'Array'), 'exponentialTimeDecayedAvgArray': ('exponentialTimeDecayedAvg', 'Array'), 'kolmogorovSmirnovTestArray': ('kolmogorovSmirnovTest', 'Array'), 'quantilesExactWeightedArray': ('quantilesExactWeighted', 'Array'), 'countArray': ('count', 'Array'), 'groupBitAndArray': ('groupBitAnd', 'Array'), 'uniqThetaArray': ('uniqTheta', 'Array'), 'quantilesBFloat16Array': ('quantilesBFloat16', 'Array'), 'histogramArray': ('histogram', 'Array'), 'uniqExactArray': ('uniqExact', 'Array'), 'quantilesDeterministicArray': ('quantilesDeterministic', 'Array'), 'maxMapArray': ('maxMap', 'Array'), 'quantileExactWeightedArray': ('quantileExactWeighted', 'Array'), 'maxIntersectionsPositionArray': ('maxIntersectionsPosition', 'Array'), 'groupArraySampleArray': ('groupArraySample', 'Array'), 'sequenceCountArray': ('sequenceCount', 'Array'), 'avgWeightedArray': ('avgWeighted', 'Array'), 'quantilesTimingWeightedArray': ('quantilesTimingWeighted', 'Array'), 'deltaSumTimestampArray': ('deltaSumTimestamp', 'Array'), 'quantilesTDigestWeightedArray': ('quantilesTDigestWeighted', 'Array'), 'first_valueArray': ('first_value', 'Array'), 'cramersVBiasCorrectedArray': ('cramersVBiasCorrected', 'Array'), 'meanZTestArray': ('meanZTest', 'Array'), 'sequenceMatchArray': ('sequenceMatch', 'Array'), 'sumWithOverflowArray': ('sumWithOverflow', 'Array'), 'kurtPopArray': ('kurtPop', 'Array'), 'uniqHLL12Array': ('uniqHLL12', 'Array'), 'largestTriangleThreeBucketsArray': ('largestTriangleThreeBuckets', 'Array'), 'contingencyArray': ('contingency', 'Array'), 'quantileArray': ('quantile', 'Array'), 'varSampArray': ('varSamp', 'Array'), 'medianArray': ('median', 'Array'), 'theilsUArray': ('theilsU', 'Array'), 'groupBitmapAndArray': ('groupBitmapAnd', 'Array'), 'sumArray': ('sum', 'Array'), 'sparkBarArray': ('sparkBar', 'Array'), 'quantileExactArray': ('quantileExact', 'Array'), 'quantileTDigestArray': ('quantileTDigest', 'Array'), 'quantileBFloat16Array': ('quantileBFloat16', 'Array'), 'uniqUpToArray': ('uniqUpTo', 'Array'), 'sumMapArray': ('sumMap', 'Array'), 'quantileExactLowArray': ('quantileExactLow', 'Array'), 'quantileGKArray': ('quantileGK', 'Array'), 'groupBitmapArray': ('groupBitmap', 'Array'), 'groupConcatArray': ('groupConcat', 'Array'), 'quantilesExactLowArray': ('quantilesExactLow', 'Array'), 'quantilesGKArray': ('quantilesGK', 'Array'), 'approx_top_sumArray': ('approx_top_sum', 'Array'), 'groupArrayMovingAvgArray': ('groupArrayMovingAvg', 'Array'), 'topKWeightedState': ('topKWeighted', 'State'), 'topKState': ('topK', 'State'), 'quantilesBFloat16WeightedState': ('quantilesBFloat16Weighted', 'State'), 'uniqCombinedState': ('uniqCombined', 'State'), 'groupBitmapXorState': ('groupBitmapXor', 'State'), 'corrState': ('corr', 'State'), 'rankCorrState': ('rankCorr', 'State'), 'maxState': ('max', 'State'), 'mannWhitneyUTestState': ('mannWhitneyUTest', 'State'), 'groupBitmapOrState': ('groupBitmapOr', 'State'), 'argMaxState': ('argMax', 'State'), 'sumKahanState': ('sumKahan', 'State'), 'groupArrayInsertAtState': ('groupArrayInsertAt', 'State'), 'groupBitXorState': ('groupBitXor', 'State'), 'sumCountState': ('sumCount', 'State'), 'maxIntersectionsState': ('maxIntersections', 'State'), 'minMapState': ('minMap', 'State'), 'quantileDeterministicState': ('quantileDeterministic', 'State'), 'boundingRatioState': ('boundingRatio', 'State'), 'quantilesInterpolatedWeightedState': ('quantilesInterpolatedWeighted', 'State'), 'quantileTimingWeightedState': ('quantileTimingWeighted', 'State'), 'stddevSampState': ('stddevSamp', 'State'), 'varPopState': ('varPop', 'State'), 'covarPopState': ('covarPop', 'State'), 'quantilesTimingState': ('quantilesTiming', 'State'), 'skewPopState': ('skewPop', 'State'), 'cramersVState': ('cramersV', 'State'), 'simpleLinearRegressionState': ('simpleLinearRegression', 'State'), 'groupBitOrState': ('groupBitOr', 'State'), 'stochasticLinearRegressionState': ('stochasticLinearRegression', 'State'), 'anyHeavyState': ('anyHeavy', 'State'), 'quantilesExactExclusiveState': ('quantilesExactExclusive', 'State'), 'quantileExactHighState': ('quantileExactHigh', 'State'), 'quantilesExactState': ('quantilesExact', 'State'), 'quantilesExactHighState': ('quantilesExactHigh', 'State'), 'intervalLengthSumState': ('intervalLengthSum', 'State'), 'last_valueState': ('last_value', 'State'), 'welchTTestState': ('welchTTest', 'State'), 'entropyState': ('entropy', 'State'), 'anyLastState': ('anyLast', 'State'), 'uniqState': ('uniq', 'State'), 'anyState': ('any', 'State'), 'minState': ('min', 'State'), 'quantilesTDigestState': ('quantilesTDigest', 'State'), 'quantileTimingState': ('quantileTiming', 'State'), 'groupArrayMovingSumState': ('groupArrayMovingSum', 'State'), 'kurtSampState': ('kurtSamp', 'State'), 'windowFunnelState': ('windowFunnel', 'State'), 'quantileBFloat16WeightedState': ('quantileBFloat16Weighted', 'State'), 'categoricalInformationValueState': ('categoricalInformationValue', 'State'), 'quantilesState': ('quantiles', 'State'), 'uniqCombined64State': ('uniqCombined64', 'State'), 'quantileTDigestWeightedState': ('quantileTDigestWeighted', 'State'), 'argMinState': ('argMin', 'State'), 'deltaSumState': ('deltaSum', 'State'), 'studentTTestState': ('studentTTest', 'State'), 'avgState': ('avg', 'State'), 'groupArrayState': ('groupArray', 'State'), 'quantileInterpolatedWeightedState': ('quantileInterpolatedWeighted', 'State'), 'covarSampState': ('covarSamp', 'State'), 'exponentialMovingAverageState': ('exponentialMovingAverage', 'State'), 'quantileExactInclusiveState': ('quantileExactInclusive', 'State'), 'groupUniqArrayState': ('groupUniqArray', 'State'), 'stddevPopState': ('stddevPop', 'State'), 'sequenceNextNodeState': ('sequenceNextNode', 'State'), 'retentionState': ('retention', 'State'), 'skewSampState': ('skewSamp', 'State'), 'groupArrayLastState': ('groupArrayLast', 'State'), 'stochasticLogisticRegressionState': ('stochasticLogisticRegression', 'State'), 'exponentialTimeDecayedAvgState': ('exponentialTimeDecayedAvg', 'State'), 'kolmogorovSmirnovTestState': ('kolmogorovSmirnovTest', 'State'), 'quantilesExactWeightedState': ('quantilesExactWeighted', 'State'), 'countState': ('count', 'State'), 'groupBitAndState': ('groupBitAnd', 'State'), 'uniqThetaState': ('uniqTheta', 'State'), 'quantilesBFloat16State': ('quantilesBFloat16', 'State'), 'histogramState': ('histogram', 'State'), 'uniqExactState': ('uniqExact', 'State'), 'quantilesDeterministicState': ('quantilesDeterministic', 'State'), 'maxMapState': ('maxMap', 'State'), 'quantileExactWeightedState': ('quantileExactWeighted', 'State'), 'maxIntersectionsPositionState': ('maxIntersectionsPosition', 'State'), 'groupArraySampleState': ('groupArraySample', 'State'), 'sequenceCountState': ('sequenceCount', 'State'), 'avgWeightedState': ('avgWeighted', 'State'), 'quantilesTimingWeightedState': ('quantilesTimingWeighted', 'State'), 'deltaSumTimestampState': ('deltaSumTimestamp', 'State'), 'quantilesTDigestWeightedState': ('quantilesTDigestWeighted', 'State'), 'first_valueState': ('first_value', 'State'), 'cramersVBiasCorrectedState': ('cramersVBiasCorrected', 'State'), 'meanZTestState': ('meanZTest', 'State'), 'sequenceMatchState': ('sequenceMatch', 'State'), 'sumWithOverflowState': ('sumWithOverflow', 'State'), 'kurtPopState': ('kurtPop', 'State'), 'uniqHLL12State': ('uniqHLL12', 'State'), 'largestTriangleThreeBucketsState': ('largestTriangleThreeBuckets', 'State'), 'contingencyState': ('contingency', 'State'), 'quantileState': ('quantile', 'State'), 'varSampState': ('varSamp', 'State'), 'medianState': ('median', 'State'), 'theilsUState': ('theilsU', 'State'), 'groupBitmapAndState': ('groupBitmapAnd', 'State'), 'sumState': ('sum', 'State'), 'sparkBarState': ('sparkBar', 'State'), 'quantileExactState': ('quantileExact', 'State'), 'quantileTDigestState': ('quantileTDigest', 'State'), 'quantileBFloat16State': ('quantileBFloat16', 'State'), 'uniqUpToState': ('uniqUpTo', 'State'), 'sumMapState': ('sumMap', 'State'), 'quantileExactLowState': ('quantileExactLow', 'State'), 'quantileGKState': ('quantileGK', 'State'), 'groupBitmapState': ('groupBitmap', 'State'), 'groupConcatState': ('groupConcat', 'State'), 'quantilesExactLowState': ('quantilesExactLow', 'State'), 'quantilesGKState': ('quantilesGK', 'State'), 'approx_top_sumState': ('approx_top_sum', 'State'), 'groupArrayMovingAvgState': ('groupArrayMovingAvg', 'State'), 'topKWeightedMerge': ('topKWeighted', 'Merge'), 'topKMerge': ('topK', 'Merge'), 'quantilesBFloat16WeightedMerge': ('quantilesBFloat16Weighted', 'Merge'), 'uniqCombinedMerge': ('uniqCombined', 'Merge'), 'groupBitmapXorMerge': ('groupBitmapXor', 'Merge'), 'corrMerge': ('corr', 'Merge'), 'rankCorrMerge': ('rankCorr', 'Merge'), 'maxMerge': ('max', 'Merge'), 'mannWhitneyUTestMerge': ('mannWhitneyUTest', 'Merge'), 'groupBitmapOrMerge': ('groupBitmapOr', 'Merge'), 'argMaxMerge': ('argMax', 'Merge'), 'sumKahanMerge': ('sumKahan', 'Merge'), 'groupArrayInsertAtMerge': ('groupArrayInsertAt', 'Merge'), 'groupBitXorMerge': ('groupBitXor', 'Merge'), 'sumCountMerge': ('sumCount', 'Merge'), 'maxIntersectionsMerge': ('maxIntersections', 'Merge'), 'minMapMerge': ('minMap', 'Merge'), 'quantileDeterministicMerge': ('quantileDeterministic', 'Merge'), 'boundingRatioMerge': ('boundingRatio', 'Merge'), 'quantilesInterpolatedWeightedMerge': ('quantilesInterpolatedWeighted', 'Merge'), 'quantileTimingWeightedMerge': ('quantileTimingWeighted', 'Merge'), 'stddevSampMerge': ('stddevSamp', 'Merge'), 'varPopMerge': ('varPop', 'Merge'), 'covarPopMerge': ('covarPop', 'Merge'), 'quantilesTimingMerge': ('quantilesTiming', 'Merge'), 'skewPopMerge': ('skewPop', 'Merge'), 'cramersVMerge': ('cramersV', 'Merge'), 'simpleLinearRegressionMerge': ('simpleLinearRegression', 'Merge'), 'groupBitOrMerge': ('groupBitOr', 'Merge'), 'stochasticLinearRegressionMerge': ('stochasticLinearRegression', 'Merge'), 'anyHeavyMerge': ('anyHeavy', 'Merge'), 'quantilesExactExclusiveMerge': ('quantilesExactExclusive', 'Merge'), 'quantileExactHighMerge': ('quantileExactHigh', 'Merge'), 'quantilesExactMerge': ('quantilesExact', 'Merge'), 'quantilesExactHighMerge': ('quantilesExactHigh', 'Merge'), 'intervalLengthSumMerge': ('intervalLengthSum', 'Merge'), 'last_valueMerge': ('last_value', 'Merge'), 'welchTTestMerge': ('welchTTest', 'Merge'), 'entropyMerge': ('entropy', 'Merge'), 'anyLastMerge': ('anyLast', 'Merge'), 'uniqMerge': ('uniq', 'Merge'), 'anyMerge': ('any', 'Merge'), 'minMerge': ('min', 'Merge'), 'quantilesTDigestMerge': ('quantilesTDigest', 'Merge'), 'quantileTimingMerge': ('quantileTiming', 'Merge'), 'groupArrayMovingSumMerge': ('groupArrayMovingSum', 'Merge'), 'kurtSampMerge': ('kurtSamp', 'Merge'), 'windowFunnelMerge': ('windowFunnel', 'Merge'), 'quantileBFloat16WeightedMerge': ('quantileBFloat16Weighted', 'Merge'), 'categoricalInformationValueMerge': ('categoricalInformationValue', 'Merge'), 'quantilesMerge': ('quantiles', 'Merge'), 'uniqCombined64Merge': ('uniqCombined64', 'Merge'), 'quantileTDigestWeightedMerge': ('quantileTDigestWeighted', 'Merge'), 'argMinMerge': ('argMin', 'Merge'), 'deltaSumMerge': ('deltaSum', 'Merge'), 'studentTTestMerge': ('studentTTest', 'Merge'), 'avgMerge': ('avg', 'Merge'), 'groupArrayMerge': ('groupArray', 'Merge'), 'quantileInterpolatedWeightedMerge': ('quantileInterpolatedWeighted', 'Merge'), 'covarSampMerge': ('covarSamp', 'Merge'), 'exponentialMovingAverageMerge': ('exponentialMovingAverage', 'Merge'), 'quantileExactInclusiveMerge': ('quantileExactInclusive', 'Merge'), 'groupUniqArrayMerge': ('groupUniqArray', 'Merge'), 'stddevPopMerge': ('stddevPop', 'Merge'), 'sequenceNextNodeMerge': ('sequenceNextNode', 'Merge'), 'retentionMerge': ('retention', 'Merge'), 'skewSampMerge': ('skewSamp', 'Merge'), 'groupArrayLastMerge': ('groupArrayLast', 'Merge'), 'stochasticLogisticRegressionMerge': ('stochasticLogisticRegression', 'Merge'), 'exponentialTimeDecayedAvgMerge': ('exponentialTimeDecayedAvg', 'Merge'), 'kolmogorovSmirnovTestMerge': ('kolmogorovSmirnovTest', 'Merge'), 'quantilesExactWeightedMerge': ('quantilesExactWeighted', 'Merge'), 'countMerge': ('count', 'Merge'), 'groupBitAndMerge': ('groupBitAnd', 'Merge'), 'uniqThetaMerge': ('uniqTheta', 'Merge'), 'quantilesBFloat16Merge': ('quantilesBFloat16', 'Merge'), 'histogramMerge': ('histogram', 'Merge'), 'uniqExactMerge': ('uniqExact', 'Merge'), 'quantilesDeterministicMerge': ('quantilesDeterministic', 'Merge'), 'maxMapMerge': ('maxMap', 'Merge'), 'quantileExactWeightedMerge': ('quantileExactWeighted', 'Merge'), 'maxIntersectionsPositionMerge': ('maxIntersectionsPosition', 'Merge'), 'groupArraySampleMerge': ('groupArraySample', 'Merge'), 'sequenceCountMerge': ('sequenceCount', 'Merge'), 'avgWeightedMerge': ('avgWeighted', 'Merge'), 'quantilesTimingWeightedMerge': ('quantilesTimingWeighted', 'Merge'), 'deltaSumTimestampMerge': ('deltaSumTimestamp', 'Merge'), 'quantilesTDigestWeightedMerge': ('quantilesTDigestWeighted', 'Merge'), 'first_valueMerge': ('first_value', 'Merge'), 'cramersVBiasCorrectedMerge': ('cramersVBiasCorrected', 'Merge'), 'meanZTestMerge': ('meanZTest', 'Merge'), 'sequenceMatchMerge': ('sequenceMatch', 'Merge'), 'sumWithOverflowMerge': ('sumWithOverflow', 'Merge'), 'kurtPopMerge': ('kurtPop', 'Merge'), 'uniqHLL12Merge': ('uniqHLL12', 'Merge'), 'largestTriangleThreeBucketsMerge': ('largestTriangleThreeBuckets', 'Merge'), 'contingencyMerge': ('contingency', 'Merge'), 'quantileMerge': ('quantile', 'Merge'), 'varSampMerge': ('varSamp', 'Merge'), 'medianMerge': ('median', 'Merge'), 'theilsUMerge': ('theilsU', 'Merge'), 'groupBitmapAndMerge': ('groupBitmapAnd', 'Merge'), 'sumMerge': ('sum', 'Merge'), 'sparkBarMerge': ('sparkBar', 'Merge'), 'quantileExactMerge': ('quantileExact', 'Merge'), 'quantileTDigestMerge': ('quantileTDigest', 'Merge'), 'quantileBFloat16Merge': ('quantileBFloat16', 'Merge'), 'uniqUpToMerge': ('uniqUpTo', 'Merge'), 'sumMapMerge': ('sumMap', 'Merge'), 'quantileExactLowMerge': ('quantileExactLow', 'Merge'), 'quantileGKMerge': ('quantileGK', 'Merge'), 'groupBitmapMerge': ('groupBitmap', 'Merge'), 'groupConcatMerge': ('groupConcat', 'Merge'), 'quantilesExactLowMerge': ('quantilesExactLow', 'Merge'), 'quantilesGKMerge': ('quantilesGK', 'Merge'), 'approx_top_sumMerge': ('approx_top_sum', 'Merge'), 'groupArrayMovingAvgMerge': ('groupArrayMovingAvg', 'Merge'), 'topKWeightedMap': ('topKWeighted', 'Map'), 'topKMap': ('topK', 'Map'), 'quantilesBFloat16WeightedMap': ('quantilesBFloat16Weighted', 'Map'), 'uniqCombinedMap': ('uniqCombined', 'Map'), 'groupBitmapXorMap': ('groupBitmapXor', 'Map'), 'corrMap': ('corr', 'Map'), 'rankCorrMap': ('rankCorr', 'Map'), 'maxMap': ('maxMap', None), 'mannWhitneyUTestMap': ('mannWhitneyUTest', 'Map'), 'groupBitmapOrMap': ('groupBitmapOr', 'Map'), 'argMaxMap': ('argMax', 'Map'), 'sumKahanMap': ('sumKahan', 'Map'), 'groupArrayInsertAtMap': ('groupArrayInsertAt', 'Map'), 'groupBitXorMap': ('groupBitXor', 'Map'), 'sumCountMap': ('sumCount', 'Map'), 'maxIntersectionsMap': ('maxIntersections', 'Map'), 'minMapMap': ('minMap', 'Map'), 'quantileDeterministicMap': ('quantileDeterministic', 'Map'), 'boundingRatioMap': ('boundingRatio', 'Map'), 'quantilesInterpolatedWeightedMap': ('quantilesInterpolatedWeighted', 'Map'), 'quantileTimingWeightedMap': ('quantileTimingWeighted', 'Map'), 'stddevSampMap': ('stddevSamp', 'Map'), 'varPopMap': ('varPop', 'Map'), 'covarPopMap': ('covarPop', 'Map'), 'quantilesTimingMap': ('quantilesTiming', 'Map'), 'skewPopMap': ('skewPop', 'Map'), 'cramersVMap': ('cramersV', 'Map'), 'simpleLinearRegressionMap': ('simpleLinearRegression', 'Map'), 'groupBitOrMap': ('groupBitOr', 'Map'), 'stochasticLinearRegressionMap': ('stochasticLinearRegression', 'Map'), 'anyHeavyMap': ('anyHeavy', 'Map'), 'quantilesExactExclusiveMap': ('quantilesExactExclusive', 'Map'), 'quantileExactHighMap': ('quantileExactHigh', 'Map'), 'quantilesExactMap': ('quantilesExact', 'Map'), 'quantilesExactHighMap': ('quantilesExactHigh', 'Map'), 'intervalLengthSumMap': ('intervalLengthSum', 'Map'), 'last_valueMap': ('last_value', 'Map'), 'welchTTestMap': ('welchTTest', 'Map'), 'entropyMap': ('entropy', 'Map'), 'anyLastMap': ('anyLast', 'Map'), 'uniqMap': ('uniq', 'Map'), 'anyMap': ('any', 'Map'), 'minMap': ('minMap', None), 'quantilesTDigestMap': ('quantilesTDigest', 'Map'), 'quantileTimingMap': ('quantileTiming', 'Map'), 'groupArrayMovingSumMap': ('groupArrayMovingSum', 'Map'), 'kurtSampMap': ('kurtSamp', 'Map'), 'windowFunnelMap': ('windowFunnel', 'Map'), 'quantileBFloat16WeightedMap': ('quantileBFloat16Weighted', 'Map'), 'categoricalInformationValueMap': ('categoricalInformationValue', 'Map'), 'quantilesMap': ('quantiles', 'Map'), 'uniqCombined64Map': ('uniqCombined64', 'Map'), 'quantileTDigestWeightedMap': ('quantileTDigestWeighted', 'Map'), 'argMinMap': ('argMin', 'Map'), 'deltaSumMap': ('deltaSum', 'Map'), 'studentTTestMap': ('studentTTest', 'Map'), 'avgMap': ('avg', 'Map'), 'groupArrayMap': ('groupArray', 'Map'), 'quantileInterpolatedWeightedMap': ('quantileInterpolatedWeighted', 'Map'), 'covarSampMap': ('covarSamp', 'Map'), 'exponentialMovingAverageMap': ('exponentialMovingAverage', 'Map'), 'quantileExactInclusiveMap': ('quantileExactInclusive', 'Map'), 'groupUniqArrayMap': ('groupUniqArray', 'Map'), 'stddevPopMap': ('stddevPop', 'Map'), 'sequenceNextNodeMap': ('sequenceNextNode', 'Map'), 'retentionMap': ('retention', 'Map'), 'skewSampMap': ('skewSamp', 'Map'), 'groupArrayLastMap': ('groupArrayLast', 'Map'), 'stochasticLogisticRegressionMap': ('stochasticLogisticRegression', 'Map'), 'exponentialTimeDecayedAvgMap': ('exponentialTimeDecayedAvg', 'Map'), 'kolmogorovSmirnovTestMap': ('kolmogorovSmirnovTest', 'Map'), 'quantilesExactWeightedMap': ('quantilesExactWeighted', 'Map'), 'countMap': ('count', 'Map'), 'groupBitAndMap': ('groupBitAnd', 'Map'), 'uniqThetaMap': ('uniqTheta', 'Map'), 'quantilesBFloat16Map': ('quantilesBFloat16', 'Map'), 'histogramMap': ('histogram', 'Map'), 'uniqExactMap': ('uniqExact', 'Map'), 'quantilesDeterministicMap': ('quantilesDeterministic', 'Map'), 'maxMapMap': ('maxMap', 'Map'), 'quantileExactWeightedMap': ('quantileExactWeighted', 'Map'), 'maxIntersectionsPositionMap': ('maxIntersectionsPosition', 'Map'), 'groupArraySampleMap': ('groupArraySample', 'Map'), 'sequenceCountMap': ('sequenceCount', 'Map'), 'avgWeightedMap': ('avgWeighted', 'Map'), 'quantilesTimingWeightedMap': ('quantilesTimingWeighted', 'Map'), 'deltaSumTimestampMap': ('deltaSumTimestamp', 'Map'), 'quantilesTDigestWeightedMap': ('quantilesTDigestWeighted', 'Map'), 'first_valueMap': ('first_value', 'Map'), 'cramersVBiasCorrectedMap': ('cramersVBiasCorrected', 'Map'), 'meanZTestMap': ('meanZTest', 'Map'), 'sequenceMatchMap': ('sequenceMatch', 'Map'), 'sumWithOverflowMap': ('sumWithOverflow', 'Map'), 'kurtPopMap': ('kurtPop', 'Map'), 'uniqHLL12Map': ('uniqHLL12', 'Map'), 'largestTriangleThreeBucketsMap': ('largestTriangleThreeBuckets', 'Map'), 'contingencyMap': ('contingency', 'Map'), 'quantileMap': ('quantile', 'Map'), 'varSampMap': ('varSamp', 'Map'), 'medianMap': ('median', 'Map'), 'theilsUMap': ('theilsU', 'Map'), 'groupBitmapAndMap': ('groupBitmapAnd', 'Map'), 'sumMap': ('sumMap', None), 'sparkBarMap': ('sparkBar', 'Map'), 'quantileExactMap': ('quantileExact', 'Map'), 'quantileTDigestMap': ('quantileTDigest', 'Map'), 'quantileBFloat16Map': ('quantileBFloat16', 'Map'), 'uniqUpToMap': ('uniqUpTo', 'Map'), 'sumMapMap': ('sumMap', 'Map'), 'quantileExactLowMap': ('quantileExactLow', 'Map'), 'quantileGKMap': ('quantileGK', 'Map'), 'groupBitmapMap': ('groupBitmap', 'Map'), 'groupConcatMap': ('groupConcat', 'Map'), 'quantilesExactLowMap': ('quantilesExactLow', 'Map'), 'quantilesGKMap': ('quantilesGK', 'Map'), 'approx_top_sumMap': ('approx_top_sum', 'Map'), 'groupArrayMovingAvgMap': ('groupArrayMovingAvg', 'Map'), 'topKWeightedIf': ('topKWeighted', 'If'), 'topKIf': ('topK', 'If'), 'quantilesBFloat16WeightedIf': ('quantilesBFloat16Weighted', 'If'), 'uniqCombinedIf': ('uniqCombined', 'If'), 'groupBitmapXorIf': ('groupBitmapXor', 'If'), 'corrIf': ('corr', 'If'), 'rankCorrIf': ('rankCorr', 'If'), 'maxIf': ('max', 'If'), 'mannWhitneyUTestIf': ('mannWhitneyUTest', 'If'), 'groupBitmapOrIf': ('groupBitmapOr', 'If'), 'argMaxIf': ('argMax', 'If'), 'sumKahanIf': ('sumKahan', 'If'), 'groupArrayInsertAtIf': ('groupArrayInsertAt', 'If'), 'groupBitXorIf': ('groupBitXor', 'If'), 'sumCountIf': ('sumCount', 'If'), 'maxIntersectionsIf': ('maxIntersections', 'If'), 'minMapIf': ('minMap', 'If'), 'quantileDeterministicIf': ('quantileDeterministic', 'If'), 'boundingRatioIf': ('boundingRatio', 'If'), 'quantilesInterpolatedWeightedIf': ('quantilesInterpolatedWeighted', 'If'), 'quantileTimingWeightedIf': ('quantileTimingWeighted', 'If'), 'stddevSampIf': ('stddevSamp', 'If'), 'varPopIf': ('varPop', 'If'), 'covarPopIf': ('covarPop', 'If'), 'quantilesTimingIf': ('quantilesTiming', 'If'), 'skewPopIf': ('skewPop', 'If'), 'cramersVIf': ('cramersV', 'If'), 'simpleLinearRegressionIf': ('simpleLinearRegression', 'If'), 'groupBitOrIf': ('groupBitOr', 'If'), 'stochasticLinearRegressionIf': ('stochasticLinearRegression', 'If'), 'anyHeavyIf': ('anyHeavy', 'If'), 'quantilesExactExclusiveIf': ('quantilesExactExclusive', 'If'), 'quantileExactHighIf': ('quantileExactHigh', 'If'), 'quantilesExactIf': ('quantilesExact', 'If'), 'quantilesExactHighIf': ('quantilesExactHigh', 'If'), 'intervalLengthSumIf': ('intervalLengthSum', 'If'), 'last_valueIf': ('last_value', 'If'), 'welchTTestIf': ('welchTTest', 'If'), 'entropyIf': ('entropy', 'If'), 'anyLastIf': ('anyLast', 'If'), 'uniqIf': ('uniq', 'If'), 'anyIf': ('any', 'If'), 'minIf': ('min', 'If'), 'quantilesTDigestIf': ('quantilesTDigest', 'If'), 'quantileTimingIf': ('quantileTiming', 'If'), 'groupArrayMovingSumIf': ('groupArrayMovingSum', 'If'), 'kurtSampIf': ('kurtSamp', 'If'), 'windowFunnelIf': ('windowFunnel', 'If'), 'quantileBFloat16WeightedIf': ('quantileBFloat16Weighted', 'If'), 'categoricalInformationValueIf': ('categoricalInformationValue', 'If'), 'quantilesIf': ('quantiles', 'If'), 'uniqCombined64If': ('uniqCombined64', 'If'), 'quantileTDigestWeightedIf': ('quantileTDigestWeighted', 'If'), 'argMinIf': ('argMin', 'If'), 'deltaSumIf': ('deltaSum', 'If'), 'studentTTestIf': ('studentTTest', 'If'), 'avgIf': ('avg', 'If'), 'groupArrayIf': ('groupArray', 'If'), 'quantileInterpolatedWeightedIf': ('quantileInterpolatedWeighted', 'If'), 'covarSampIf': ('covarSamp', 'If'), 'exponentialMovingAverageIf': ('exponentialMovingAverage', 'If'), 'quantileExactInclusiveIf': ('quantileExactInclusive', 'If'), 'groupUniqArrayIf': ('groupUniqArray', 'If'), 'stddevPopIf': ('stddevPop', 'If'), 'sequenceNextNodeIf': ('sequenceNextNode', 'If'), 'retentionIf': ('retention', 'If'), 'skewSampIf': ('skewSamp', 'If'), 'groupArrayLastIf': ('groupArrayLast', 'If'), 'stochasticLogisticRegressionIf': ('stochasticLogisticRegression', 'If'), 'exponentialTimeDecayedAvgIf': ('exponentialTimeDecayedAvg', 'If'), 'kolmogorovSmirnovTestIf': ('kolmogorovSmirnovTest', 'If'), 'quantilesExactWeightedIf': ('quantilesExactWeighted', 'If'), 'countIf': ('count', 'If'), 'groupBitAndIf': ('groupBitAnd', 'If'), 'uniqThetaIf': ('uniqTheta', 'If'), 'quantilesBFloat16If': ('quantilesBFloat16', 'If'), 'histogramIf': ('histogram', 'If'), 'uniqExactIf': ('uniqExact', 'If'), 'quantilesDeterministicIf': ('quantilesDeterministic', 'If'), 'maxMapIf': ('maxMap', 'If'), 'quantileExactWeightedIf': ('quantileExactWeighted', 'If'), 'maxIntersectionsPositionIf': ('maxIntersectionsPosition', 'If'), 'groupArraySampleIf': ('groupArraySample', 'If'), 'sequenceCountIf': ('sequenceCount', 'If'), 'avgWeightedIf': ('avgWeighted', 'If'), 'quantilesTimingWeightedIf': ('quantilesTimingWeighted', 'If'), 'deltaSumTimestampIf': ('deltaSumTimestamp', 'If'), 'quantilesTDigestWeightedIf': ('quantilesTDigestWeighted', 'If'), 'first_valueIf': ('first_value', 'If'), 'cramersVBiasCorrectedIf': ('cramersVBiasCorrected', 'If'), 'meanZTestIf': ('meanZTest', 'If'), 'sequenceMatchIf': ('sequenceMatch', 'If'), 'sumWithOverflowIf': ('sumWithOverflow', 'If'), 'kurtPopIf': ('kurtPop', 'If'), 'uniqHLL12If': ('uniqHLL12', 'If'), 'largestTriangleThreeBucketsIf': ('largestTriangleThreeBuckets', 'If'), 'contingencyIf': ('contingency', 'If'), 'quantileIf': ('quantile', 'If'), 'varSampIf': ('varSamp', 'If'), 'medianIf': ('median', 'If'), 'theilsUIf': ('theilsU', 'If'), 'groupBitmapAndIf': ('groupBitmapAnd', 'If'), 'sumIf': ('sum', 'If'), 'sparkBarIf': ('sparkBar', 'If'), 'quantileExactIf': ('quantileExact', 'If'), 'quantileTDigestIf': ('quantileTDigest', 'If'), 'quantileBFloat16If': ('quantileBFloat16', 'If'), 'uniqUpToIf': ('uniqUpTo', 'If'), 'sumMapIf': ('sumMap', 'If'), 'quantileExactLowIf': ('quantileExactLow', 'If'), 'quantileGKIf': ('quantileGK', 'If'), 'groupBitmapIf': ('groupBitmap', 'If'), 'groupConcatIf': ('groupConcat', 'If'), 'quantilesExactLowIf': ('quantilesExactLow', 'If'), 'quantilesGKIf': ('quantilesGK', 'If'), 'approx_top_sumIf': ('approx_top_sum', 'If'), 'groupArrayMovingAvgIf': ('groupArrayMovingAvg', 'If'), 'topKWeighted': ('topKWeighted', None), 'topK': ('topK', None), 'quantilesBFloat16Weighted': ('quantilesBFloat16Weighted', None), 'uniqCombined': ('uniqCombined', None), 'groupBitmapXor': ('groupBitmapXor', None), 'corr': ('corr', None), 'rankCorr': ('rankCorr', None), 'max': ('max', None), 'mannWhitneyUTest': ('mannWhitneyUTest', None), 'groupBitmapOr': ('groupBitmapOr', None), 'argMax': ('argMax', None), 'sumKahan': ('sumKahan', None), 'groupArrayInsertAt': ('groupArrayInsertAt', None), 'groupBitXor': ('groupBitXor', None), 'sumCount': ('sumCount', None), 'maxIntersections': ('maxIntersections', None), 'quantileDeterministic': ('quantileDeterministic', None), 'boundingRatio': ('boundingRatio', None), 'quantilesInterpolatedWeighted': ('quantilesInterpolatedWeighted', None), 'quantileTimingWeighted': ('quantileTimingWeighted', None), 'stddevSamp': ('stddevSamp', None), 'varPop': ('varPop', None), 'covarPop': ('covarPop', None), 'quantilesTiming': ('quantilesTiming', None), 'skewPop': ('skewPop', None), 'cramersV': ('cramersV', None), 'simpleLinearRegression': ('simpleLinearRegression', None), 'groupBitOr': ('groupBitOr', None), 'stochasticLinearRegression': ('stochasticLinearRegression', None), 'anyHeavy': ('anyHeavy', None), 'quantilesExactExclusive': ('quantilesExactExclusive', None), 'quantileExactHigh': ('quantileExactHigh', None), 'quantilesExact': ('quantilesExact', None), 'quantilesExactHigh': ('quantilesExactHigh', None), 'intervalLengthSum': ('intervalLengthSum', None), 'last_value': ('last_value', None), 'welchTTest': ('welchTTest', None), 'entropy': ('entropy', None), 'anyLast': ('anyLast', None), 'uniq': ('uniq', None), 'any': ('any', None), 'min': ('min', None), 'quantilesTDigest': ('quantilesTDigest', None), 'quantileTiming': ('quantileTiming', None), 'groupArrayMovingSum': ('groupArrayMovingSum', None), 'kurtSamp': ('kurtSamp', None), 'windowFunnel': ('windowFunnel', None), 'quantileBFloat16Weighted': ('quantileBFloat16Weighted', None), 'categoricalInformationValue': ('categoricalInformationValue', None), 'quantiles': ('quantiles', None), 'uniqCombined64': ('uniqCombined64', None), 'quantileTDigestWeighted': ('quantileTDigestWeighted', None), 'argMin': ('argMin', None), 'deltaSum': ('deltaSum', None), 'studentTTest': ('studentTTest', None), 'avg': ('avg', None), 'groupArray': ('groupArray', None), 'quantileInterpolatedWeighted': ('quantileInterpolatedWeighted', None), 'covarSamp': ('covarSamp', None), 'exponentialMovingAverage': ('exponentialMovingAverage', None), 'quantileExactInclusive': ('quantileExactInclusive', None), 'groupUniqArray': ('groupUniqArray', None), 'stddevPop': ('stddevPop', None), 'sequenceNextNode': ('sequenceNextNode', None), 'retention': ('retention', None), 'skewSamp': ('skewSamp', None), 'groupArrayLast': ('groupArrayLast', None), 'stochasticLogisticRegression': ('stochasticLogisticRegression', None), 'exponentialTimeDecayedAvg': ('exponentialTimeDecayedAvg', None), 'kolmogorovSmirnovTest': ('kolmogorovSmirnovTest', None), 'quantilesExactWeighted': ('quantilesExactWeighted', None), 'count': ('count', None), 'groupBitAnd': ('groupBitAnd', None), 'uniqTheta': ('uniqTheta', None), 'quantilesBFloat16': ('quantilesBFloat16', None), 'histogram': ('histogram', None), 'uniqExact': ('uniqExact', None), 'quantilesDeterministic': ('quantilesDeterministic', None), 'quantileExactWeighted': ('quantileExactWeighted', None), 'maxIntersectionsPosition': ('maxIntersectionsPosition', None), 'groupArraySample': ('groupArraySample', None), 'sequenceCount': ('sequenceCount', None), 'avgWeighted': ('avgWeighted', None), 'quantilesTimingWeighted': ('quantilesTimingWeighted', None), 'deltaSumTimestamp': ('deltaSumTimestamp', None), 'quantilesTDigestWeighted': ('quantilesTDigestWeighted', None), 'first_value': ('first_value', None), 'cramersVBiasCorrected': ('cramersVBiasCorrected', None), 'meanZTest': ('meanZTest', None), 'sequenceMatch': ('sequenceMatch', None), 'sumWithOverflow': ('sumWithOverflow', None), 'kurtPop': ('kurtPop', None), 'uniqHLL12': ('uniqHLL12', None), 'largestTriangleThreeBuckets': ('largestTriangleThreeBuckets', None), 'contingency': ('contingency', None), 'quantile': ('quantile', None), 'varSamp': ('varSamp', None), 'median': ('median', None), 'theilsU': ('theilsU', None), 'groupBitmapAnd': ('groupBitmapAnd', None), 'sum': ('sum', None), 'sparkBar': ('sparkBar', None), 'quantileExact': ('quantileExact', None), 'quantileTDigest': ('quantileTDigest', None), 'quantileBFloat16': ('quantileBFloat16', None), 'uniqUpTo': ('uniqUpTo', None), 'quantileExactLow': ('quantileExactLow', None), 'quantileGK': ('quantileGK', None), 'groupBitmap': ('groupBitmap', None), 'groupConcat': ('groupConcat', None), 'quantilesExactLow': ('quantilesExactLow', None), 'quantilesGK': ('quantilesGK', None), 'approx_top_sum': ('approx_top_sum', None), 'groupArrayMovingAvg': ('groupArrayMovingAvg', None)}
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>>, '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>>, 'ARRAYJOIN': <function ClickHouseParser.<lambda>>, 'GROUPCONCAT': <function ClickHouseParser.<lambda>>, 'QUANTILE': <function ClickHouseParser.<lambda>>, 'QUANTILEEXACT': <function ClickHouseParser.<lambda>>, 'MEDIAN': <function ClickHouseParser.<lambda>>, 'MEDIANEXACT': <function ClickHouseParser.<lambda>>, 'COLUMNS': <function ClickHouseParser.<lambda>>, 'TUPLE': <function ClickHouseParser.<lambda>>, 'AND': <function ClickHouseParser.<lambda>>, 'OR': <function ClickHouseParser.<lambda>>, 'XOR': <function ClickHouseParser.<lambda>>, 'VIEW': <function ClickHouseParser.<lambda>>}
PROPERTY_PARSERS =
{'ALLOWED_VALUES': <function Parser.<lambda>>, 'ALGORITHM': <function Parser.<lambda>>, 'AUTO': <function Parser.<lambda>>, 'AUTO_INCREMENT': <function Parser.<lambda>>, 'BACKUP': <function Parser.<lambda>>, 'BLOCKCOMPRESSION': <function Parser.<lambda>>, 'CALLED': <function Parser.<lambda>>, 'CHARSET': <function Parser.<lambda>>, 'CHECKSUM': <function Parser.<lambda>>, 'CLUSTER BY': <function Parser.<lambda>>, 'CLUSTERED': <function Parser.<lambda>>, 'COLLATE': <function Parser.<lambda>>, 'COMMENT': <function Parser.<lambda>>, 'CONTAINS': <function Parser.<lambda>>, 'COPY': <function Parser.<lambda>>, 'DATABLOCKSIZE': <function Parser.<lambda>>, 'DATA_DELETION': <function Parser.<lambda>>, 'DEFINER': <function Parser.<lambda>>, 'DETERMINISTIC': <function Parser.<lambda>>, 'DISTRIBUTED': <function Parser.<lambda>>, 'DUPLICATE': <function Parser.<lambda>>, 'DISTKEY': <function Parser.<lambda>>, 'DISTSTYLE': <function Parser.<lambda>>, 'EMPTY': <function Parser.<lambda>>, 'ENGINE': <function ClickHouseParser.<lambda>>, 'ENVIRONMENT': <function Parser.<lambda>>, 'HANDLER': <function Parser.<lambda>>, 'EXECUTE': <function Parser.<lambda>>, 'EXTERNAL': <function Parser.<lambda>>, 'FALLBACK': <function Parser.<lambda>>, 'FORMAT': <function Parser.<lambda>>, 'FREESPACE': <function Parser.<lambda>>, 'GLOBAL': <function Parser.<lambda>>, 'HEAP': <function Parser.<lambda>>, 'ICEBERG': <function Parser.<lambda>>, 'IMMUTABLE': <function Parser.<lambda>>, 'INHERITS': <function Parser.<lambda>>, 'INPUT': <function Parser.<lambda>>, 'JOURNAL': <function Parser.<lambda>>, 'LANGUAGE': <function Parser.<lambda>>, 'LAYOUT': <function Parser.<lambda>>, 'LIFETIME': <function Parser.<lambda>>, 'LIKE': <function Parser.<lambda>>, 'LOCATION': <function Parser.<lambda>>, 'LOCK': <function Parser.<lambda>>, 'LOCKING': <function Parser.<lambda>>, 'LOG': <function Parser.<lambda>>, 'MATERIALIZED': <function Parser.<lambda>>, 'MERGEBLOCKRATIO': <function Parser.<lambda>>, 'MODIFIES': <function Parser.<lambda>>, 'MULTISET': <function Parser.<lambda>>, 'NO': <function Parser.<lambda>>, 'ON': <function Parser.<lambda>>, 'ORDER BY': <function Parser.<lambda>>, 'OUTPUT': <function Parser.<lambda>>, 'PARTITION': <function Parser.<lambda>>, 'PARTITION BY': <function Parser.<lambda>>, 'PARTITIONED BY': <function Parser.<lambda>>, 'PARTITIONED_BY': <function Parser.<lambda>>, 'PRIMARY KEY': <function Parser.<lambda>>, 'RANGE': <function Parser.<lambda>>, 'READS': <function Parser.<lambda>>, 'REMOTE': <function Parser.<lambda>>, 'RETURNS': <function Parser.<lambda>>, 'STRICT': <function Parser.<lambda>>, 'STREAMING': <function Parser.<lambda>>, 'ROW': <function Parser.<lambda>>, 'ROW_FORMAT': <function Parser.<lambda>>, 'SAMPLE': <function Parser.<lambda>>, 'SECURE': <function Parser.<lambda>>, 'SECURITY': <function Parser.<lambda>>, 'SQL SECURITY': <function Parser.<lambda>>, 'SET': <function Parser.<lambda>>, 'SETTINGS': <function Parser.<lambda>>, 'SHARING': <function Parser.<lambda>>, 'SORTKEY': <function Parser.<lambda>>, 'SOURCE': <function Parser.<lambda>>, 'STABLE': <function Parser.<lambda>>, 'STORED': <function Parser.<lambda>>, 'SYSTEM_VERSIONING': <function Parser.<lambda>>, 'TBLPROPERTIES': <function Parser.<lambda>>, 'TEMP': <function Parser.<lambda>>, 'TEMPORARY': <function Parser.<lambda>>, 'TO': <function Parser.<lambda>>, 'TRANSIENT': <function Parser.<lambda>>, 'TRANSFORM': <function Parser.<lambda>>, 'TTL': <function Parser.<lambda>>, 'USING': <function Parser.<lambda>>, 'UNLOGGED': <function Parser.<lambda>>, 'VOLATILE': <function Parser.<lambda>>, 'WITH': <function Parser.<lambda>>, 'REFRESH': <function ClickHouseParser.<lambda>>, 'UUID': <function ClickHouseParser.<lambda>>}
NO_PAREN_FUNCTION_PARSERS =
{'CASE': <function Parser.<lambda>>, 'CONNECT_BY_ROOT': <function Parser.<lambda>>, 'IF': <function Parser.<lambda>>}
NO_PAREN_FUNCTIONS =
{<TokenType.CURRENT_DATE: 255>: <class 'sqlglot.expressions.temporal.CurrentDate'>, <TokenType.CURRENT_DATETIME: 256>: <class 'sqlglot.expressions.temporal.CurrentDate'>, <TokenType.CURRENT_TIME: 258>: <class 'sqlglot.expressions.temporal.CurrentTime'>, <TokenType.CURRENT_USER: 260>: <class 'sqlglot.expressions.functions.CurrentUser'>, <TokenType.CURRENT_ROLE: 262>: <class 'sqlglot.expressions.functions.CurrentRole'>}
RANGE_PARSERS =
{<TokenType.AT_GT: 58>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.BETWEEN: 238>: <function Parser.<lambda>>, <TokenType.GLOB: 297>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.ILIKE: 305>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.IN: 306>: <function Parser.<lambda>>, <TokenType.IRLIKE: 317>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.IS: 318>: <function Parser.<lambda>>, <TokenType.LIKE: 328>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.LT_AT: 57>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.OVERLAPS: 359>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.RLIKE: 391>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.SIMILAR_TO: 406>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.FOR: 289>: <function Parser.<lambda>>, <TokenType.QMARK_AMP: 70>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.QMARK_PIPE: 71>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.HASH_DASH: 72>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.AT_QMARK: 56>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.ADJACENT: 67>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.OPERATOR: 350>: <function Parser.<lambda>>, <TokenType.AMP_LT: 65>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.AMP_GT: 66>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.CARET_AT: 44>: <function binary_range_parser.<locals>._parse_binary_range>, <TokenType.GLOBAL: 298>: <function ClickHouseParser.<lambda>>}
COLUMN_OPERATORS =
{<TokenType.DOT: 8>: None, <TokenType.DOTCOLON: 12>: <function Parser.<lambda>>, <TokenType.DCOLON: 14>: <function Parser.<lambda>>, <TokenType.ARROW: 46>: <function Parser.<lambda>>, <TokenType.DARROW: 47>: <function Parser.<lambda>>, <TokenType.HASH_ARROW: 50>: <function Parser.<lambda>>, <TokenType.DHASH_ARROW: 51>: <function Parser.<lambda>>, <TokenType.DOTCARET: 13>: <function ClickHouseParser.<lambda>>}
JOIN_KINDS =
{<TokenType.SEMI: 399>, <TokenType.STRAIGHT_JOIN: 413>, <TokenType.ALL: 228>, <TokenType.OUTER: 357>, <TokenType.ANTI: 229>, <TokenType.ANY: 230>, <TokenType.ARRAY: 232>, <TokenType.ASOF: 234>, <TokenType.PASTE: 364>, <TokenType.INNER: 309>, <TokenType.CROSS: 253>}
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.APPLY: 231>, <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.FIRST: 288>, <TokenType.FOREIGN_KEY: 291>, <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.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.SEQUENCE: 401>, <TokenType.SET: 403>, <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>}
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.ASOF: 234>, <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.FULL: 294>, <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.LEFT: 327>, <TokenType.LIMIT: 329>, <TokenType.LIST: 330>, <TokenType.LOAD: 331>, <TokenType.LOCK: 332>, <TokenType.MAP: 333>, <TokenType.MATCH: 334>, <TokenType.MERGE: 338>, <TokenType.MODEL: 340>, <TokenType.NATURAL: 341>, <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.RIGHT: 390>, <TokenType.ROLLUP: 394>, <TokenType.ROW: 395>, <TokenType.ROWS: 396>, <TokenType.SEMI: 399>, <TokenType.SEQUENCE: 401>, <TokenType.SET: 403>, <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.WINDOW: 441>, <TokenType.UNIQUE: 443>, <TokenType.SINK: 448>, <TokenType.SOURCE: 449>, <TokenType.ANALYZE: 450>, <TokenType.OPTIMIZE: 451>, <TokenType.NAMESPACE: 452>, <TokenType.EXPORT: 453>}
QUERY_MODIFIER_PARSERS =
{<TokenType.PREWHERE: 372>: <function Parser.<lambda>>, <TokenType.WHERE: 440>: <function Parser.<lambda>>, <TokenType.GROUP_BY: 300>: <function Parser.<lambda>>, <TokenType.HAVING: 302>: <function Parser.<lambda>>, <TokenType.QUALIFY: 379>: <function Parser.<lambda>>, <TokenType.WINDOW: 441>: <function Parser.<lambda>>, <TokenType.ORDER_BY: 351>: <function Parser.<lambda>>, <TokenType.LIMIT: 329>: <function Parser.<lambda>>, <TokenType.FETCH: 283>: <function Parser.<lambda>>, <TokenType.OFFSET: 347>: <function Parser.<lambda>>, <TokenType.FOR: 289>: <function Parser.<lambda>>, <TokenType.LOCK: 332>: <function Parser.<lambda>>, <TokenType.TABLE_SAMPLE: 416>: <function Parser.<lambda>>, <TokenType.USING: 432>: <function Parser.<lambda>>, <TokenType.CLUSTER_BY: 243>: <function Parser.<lambda>>, <TokenType.DISTRIBUTE_BY: 273>: <function Parser.<lambda>>, <TokenType.SORT_BY: 408>: <function Parser.<lambda>>, <TokenType.CONNECT_BY: 249>: <function Parser.<lambda>>, <TokenType.SETTINGS: 404>: <function ClickHouseParser.<lambda>>, <TokenType.FORMAT: 292>: <function ClickHouseParser.<lambda>>}
CONSTRAINT_PARSERS =
{'AUTOINCREMENT': <function Parser.<lambda>>, 'AUTO_INCREMENT': <function Parser.<lambda>>, 'CASESPECIFIC': <function Parser.<lambda>>, 'CHECK': <function Parser.<lambda>>, 'COLLATE': <function Parser.<lambda>>, 'COMMENT': <function Parser.<lambda>>, 'COMPRESS': <function Parser.<lambda>>, 'CLUSTERED': <function Parser.<lambda>>, 'NONCLUSTERED': <function Parser.<lambda>>, 'DEFAULT': <function Parser.<lambda>>, 'ENCODE': <function Parser.<lambda>>, 'EPHEMERAL': <function Parser.<lambda>>, 'EXCLUDE': <function Parser.<lambda>>, 'FOREIGN KEY': <function Parser.<lambda>>, 'FORMAT': <function Parser.<lambda>>, 'GENERATED': <function Parser.<lambda>>, 'IDENTITY': <function Parser.<lambda>>, 'INLINE': <function Parser.<lambda>>, 'LIKE': <function Parser.<lambda>>, 'NOT': <function Parser.<lambda>>, 'NULL': <function Parser.<lambda>>, 'ON': <function Parser.<lambda>>, 'PATH': <function Parser.<lambda>>, 'PERIOD': <function Parser.<lambda>>, 'PRIMARY KEY': <function Parser.<lambda>>, 'REFERENCES': <function Parser.<lambda>>, 'TITLE': <function Parser.<lambda>>, 'TTL': <function Parser.<lambda>>, 'UNIQUE': <function Parser.<lambda>>, 'UPPERCASE': <function Parser.<lambda>>, 'WITH': <function Parser.<lambda>>, 'BUCKET': <function Parser.<lambda>>, 'TRUNCATE': <function Parser.<lambda>>, 'INDEX': <function ClickHouseParser.<lambda>>, 'CODEC': <function ClickHouseParser.<lambda>>, 'ASSUME': <function ClickHouseParser.<lambda>>}
ALTER_PARSERS =
{'ADD': <function Parser.<lambda>>, 'AS': <function Parser.<lambda>>, 'ALTER': <function Parser.<lambda>>, 'CLUSTER BY': <function Parser.<lambda>>, 'DELETE': <function Parser.<lambda>>, 'DROP': <function Parser.<lambda>>, 'RENAME': <function Parser.<lambda>>, 'SET': <function Parser.<lambda>>, 'SWAP': <function Parser.<lambda>>, 'MODIFY': <function ClickHouseParser.<lambda>>, 'REPLACE': <function ClickHouseParser.<lambda>>}
SCHEMA_UNNAMED_CONSTRAINTS =
{'PRIMARY KEY', 'LIKE', 'FOREIGN KEY', 'INDEX', 'PERIOD', 'TRUNCATE', 'BUCKET', 'UNIQUE', 'EXCLUDE'}
PLACEHOLDER_PARSERS =
{<TokenType.PLACEHOLDER: 367>: <function Parser.<lambda>>, <TokenType.PARAMETER: 60>: <function Parser.<lambda>>, <TokenType.COLON: 11>: <function Parser.<lambda>>, <TokenType.L_BRACE: 5>: <function ClickHouseParser.<lambda>>}
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.DETACH: 269>: <function ClickHouseParser.<lambda>>}
Inherited Members
- sqlglot.parser.Parser
- Parser
- STRUCT_TYPE_TOKENS
- NESTED_TYPE_TOKENS
- ENUM_TYPE_TOKENS
- AGGREGATE_TYPE_TOKENS
- TYPE_TOKENS
- SIGNED_TO_UNSIGNED_TYPE_TOKEN
- SUBQUERY_PREDICATES
- SUBQUERY_TOKENS
- TEXT_MATCH_EXCLUDED_TOKENS
- DB_CREATABLES
- CREATABLES
- TRIGGER_EVENTS
- ALTERABLES
- 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
- EXPONENT
- TIMES
- TIMESTAMPS
- SET_OPERATIONS
- JOIN_METHODS
- JOIN_SIDES
- JOIN_HINTS
- SUPPORTS_DIRECTED_JOIN
- TABLE_TERMINATORS
- LAMBDAS
- TYPED_LAMBDA_ARGS
- LAMBDA_ARG_TERMINATORS
- JSON_OPERATORS
- CAST_COLUMN_OPERATORS
- EXPRESSION_PARSERS
- UNARY_PARSERS
- STRING_PARSERS
- NUMERIC_PARSERS
- PRIMARY_PARSERS
- PIPE_SYNTAX_TRANSFORM_PARSERS
- ALTER_ALTER_PARSERS
- RESERVED_CONSTRAINT_KINDS
- INVALID_FUNC_NAME_TOKENS
- FUNCTIONS_WITH_ALIASED_ARGS
- KEY_VALUE_DEFINITIONS
- EXTRACT_FUNCTIONS
- QUERY_MODIFIER_TOKENS
- SET_PARSERS
- 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_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
- TABLESAMPLE_CSV
- DEFAULT_SAMPLING_METHOD
- SET_REQUIRES_ASSIGNMENT_DELIMITER
- TRIM_PATTERN_FIRST
- STRING_ALIASES
- STRING_AGG_DEFAULT_SEPARATOR
- MODIFIERS_ATTACHED_TO_SET_OP
- NO_PAREN_IF_COMMANDS
- JSON_ARROWS_REQUIRE_JSON_TYPE
- COLON_IS_VARIANT_EXTRACT
- COLON_CHAIN_IS_SINGLE_EXTRACT
- VALUES_FOLLOWED_BY_PAREN
- SUPPORTS_IMPLICIT_UNNEST
- SUPPORTS_TABLE_QUERY
- SUPPORTS_GROUP_BY_AUTO
- SUPPORTS_DIGIT_PREFIXED_FIELD_NAMES
- SUPPORTS_PARTITION_SELECTION
- WRAPPED_TRANSFORM_COLUMN_CONSTRAINT
- ALTER_RENAME_REQUIRES_COLUMN
- ALTER_DROP_REQUIRES_COLUMN
- ALTER_TABLE_PARTITIONS
- ALTER_TABLE_MIXED_ACTIONS
- ALTER_TABLE_REQUIRES_ACTION
- ALTER_COLUMN_TYPE_REQUIRES_KEYWORD
- 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
- SET_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