sqlglot.dialects.risingwave
1from __future__ import annotations 2from sqlglot.dialects.postgres import Postgres 3from sqlglot.generator import Generator 4from sqlglot.tokens import TokenType 5import typing as t 6 7from sqlglot import exp 8 9 10class RisingWave(Postgres): 11 REQUIRES_PARENTHESIZED_STRUCT_ACCESS = True 12 SUPPORTS_STRUCT_STAR_EXPANSION = True 13 14 class Tokenizer(Postgres.Tokenizer): 15 KEYWORDS = { 16 **Postgres.Tokenizer.KEYWORDS, 17 "SINK": TokenType.SINK, 18 "SOURCE": TokenType.SOURCE, 19 } 20 21 class Parser(Postgres.Parser): 22 WRAPPED_TRANSFORM_COLUMN_CONSTRAINT = False 23 24 PROPERTY_PARSERS = { 25 **Postgres.Parser.PROPERTY_PARSERS, 26 "ENCODE": lambda self: self._parse_encode_property(), 27 "INCLUDE": lambda self: self._parse_include_property(), 28 "KEY": lambda self: self._parse_encode_property(key=True), 29 } 30 31 CONSTRAINT_PARSERS = { 32 **Postgres.Parser.CONSTRAINT_PARSERS, 33 "WATERMARK": lambda self: self.expression( 34 exp.WatermarkColumnConstraint, 35 this=self._match(TokenType.FOR) and self._parse_column(), 36 expression=self._match(TokenType.ALIAS) and self._parse_disjunction(), 37 ), 38 } 39 40 SCHEMA_UNNAMED_CONSTRAINTS = { 41 *Postgres.Parser.SCHEMA_UNNAMED_CONSTRAINTS, 42 "WATERMARK", 43 } 44 45 def _parse_table_hints(self) -> t.Optional[t.List[exp.Expression]]: 46 # There is no hint in risingwave. 47 # Do nothing here to avoid WITH keywords conflict in CREATE SINK statement. 48 return None 49 50 def _parse_include_property(self) -> t.Optional[exp.Expression]: 51 header: t.Optional[exp.Expression] = None 52 coldef: t.Optional[exp.Expression] = None 53 54 this = self._parse_var_or_string() 55 56 if not self._match(TokenType.ALIAS): 57 header = self._parse_field() 58 if header: 59 coldef = self.expression(exp.ColumnDef, this=header, kind=self._parse_types()) 60 61 self._match(TokenType.ALIAS) 62 alias = self._parse_id_var(tokens=self.ALIAS_TOKENS) 63 64 return self.expression(exp.IncludeProperty, this=this, alias=alias, column_def=coldef) 65 66 def _parse_encode_property(self, key: t.Optional[bool] = None) -> exp.EncodeProperty: 67 self._match_text_seq("ENCODE") 68 this = self._parse_var_or_string() 69 70 if self._match(TokenType.L_PAREN, advance=False): 71 properties = self.expression( 72 exp.Properties, expressions=self._parse_wrapped_properties() 73 ) 74 else: 75 properties = None 76 77 return self.expression(exp.EncodeProperty, this=this, properties=properties, key=key) 78 79 class Generator(Postgres.Generator): 80 LOCKING_READS_SUPPORTED = False 81 SUPPORTS_BETWEEN_FLAGS = False 82 83 TRANSFORMS = { 84 **Postgres.Generator.TRANSFORMS, 85 exp.FileFormatProperty: lambda self, e: f"FORMAT {self.sql(e, 'this')}", 86 } 87 88 PROPERTIES_LOCATION = { 89 **Postgres.Generator.PROPERTIES_LOCATION, 90 exp.FileFormatProperty: exp.Properties.Location.POST_EXPRESSION, 91 } 92 93 EXPRESSION_PRECEDES_PROPERTIES_CREATABLES = {"SINK"} 94 95 def computedcolumnconstraint_sql(self, expression: exp.ComputedColumnConstraint) -> str: 96 return Generator.computedcolumnconstraint_sql(self, expression) 97 98 def datatype_sql(self, expression: exp.DataType) -> str: 99 if expression.is_type(exp.DataType.Type.MAP) and len(expression.expressions) == 2: 100 key_type, value_type = expression.expressions 101 return f"MAP({self.sql(key_type)}, {self.sql(value_type)})" 102 103 return super().datatype_sql(expression)
11class RisingWave(Postgres): 12 REQUIRES_PARENTHESIZED_STRUCT_ACCESS = True 13 SUPPORTS_STRUCT_STAR_EXPANSION = True 14 15 class Tokenizer(Postgres.Tokenizer): 16 KEYWORDS = { 17 **Postgres.Tokenizer.KEYWORDS, 18 "SINK": TokenType.SINK, 19 "SOURCE": TokenType.SOURCE, 20 } 21 22 class Parser(Postgres.Parser): 23 WRAPPED_TRANSFORM_COLUMN_CONSTRAINT = False 24 25 PROPERTY_PARSERS = { 26 **Postgres.Parser.PROPERTY_PARSERS, 27 "ENCODE": lambda self: self._parse_encode_property(), 28 "INCLUDE": lambda self: self._parse_include_property(), 29 "KEY": lambda self: self._parse_encode_property(key=True), 30 } 31 32 CONSTRAINT_PARSERS = { 33 **Postgres.Parser.CONSTRAINT_PARSERS, 34 "WATERMARK": lambda self: self.expression( 35 exp.WatermarkColumnConstraint, 36 this=self._match(TokenType.FOR) and self._parse_column(), 37 expression=self._match(TokenType.ALIAS) and self._parse_disjunction(), 38 ), 39 } 40 41 SCHEMA_UNNAMED_CONSTRAINTS = { 42 *Postgres.Parser.SCHEMA_UNNAMED_CONSTRAINTS, 43 "WATERMARK", 44 } 45 46 def _parse_table_hints(self) -> t.Optional[t.List[exp.Expression]]: 47 # There is no hint in risingwave. 48 # Do nothing here to avoid WITH keywords conflict in CREATE SINK statement. 49 return None 50 51 def _parse_include_property(self) -> t.Optional[exp.Expression]: 52 header: t.Optional[exp.Expression] = None 53 coldef: t.Optional[exp.Expression] = None 54 55 this = self._parse_var_or_string() 56 57 if not self._match(TokenType.ALIAS): 58 header = self._parse_field() 59 if header: 60 coldef = self.expression(exp.ColumnDef, this=header, kind=self._parse_types()) 61 62 self._match(TokenType.ALIAS) 63 alias = self._parse_id_var(tokens=self.ALIAS_TOKENS) 64 65 return self.expression(exp.IncludeProperty, this=this, alias=alias, column_def=coldef) 66 67 def _parse_encode_property(self, key: t.Optional[bool] = None) -> exp.EncodeProperty: 68 self._match_text_seq("ENCODE") 69 this = self._parse_var_or_string() 70 71 if self._match(TokenType.L_PAREN, advance=False): 72 properties = self.expression( 73 exp.Properties, expressions=self._parse_wrapped_properties() 74 ) 75 else: 76 properties = None 77 78 return self.expression(exp.EncodeProperty, this=this, properties=properties, key=key) 79 80 class Generator(Postgres.Generator): 81 LOCKING_READS_SUPPORTED = False 82 SUPPORTS_BETWEEN_FLAGS = False 83 84 TRANSFORMS = { 85 **Postgres.Generator.TRANSFORMS, 86 exp.FileFormatProperty: lambda self, e: f"FORMAT {self.sql(e, 'this')}", 87 } 88 89 PROPERTIES_LOCATION = { 90 **Postgres.Generator.PROPERTIES_LOCATION, 91 exp.FileFormatProperty: exp.Properties.Location.POST_EXPRESSION, 92 } 93 94 EXPRESSION_PRECEDES_PROPERTIES_CREATABLES = {"SINK"} 95 96 def computedcolumnconstraint_sql(self, expression: exp.ComputedColumnConstraint) -> str: 97 return Generator.computedcolumnconstraint_sql(self, expression) 98 99 def datatype_sql(self, expression: exp.DataType) -> str: 100 if expression.is_type(exp.DataType.Type.MAP) and len(expression.expressions) == 2: 101 key_type, value_type = expression.expressions 102 return f"MAP({self.sql(key_type)}, {self.sql(value_type)})" 103 104 return super().datatype_sql(expression)
Whether struct field access requires parentheses around the expression.
RisingWave requires parentheses for struct field access in certain contexts:
SELECT (col.field).subfield FROM table -- Parentheses required
Without parentheses, the parser may not correctly interpret nested struct access.
Reference: sqlglot.dialects.risingwave.com/sql/data-types/struct#retrieve-data-in-a-struct">https://docssqlglot.dialects.risingwave.com/sql/data-types/struct#retrieve-data-in-a-struct
Whether the dialect supports expanding struct fields using star notation (e.g., struct_col.*).
BigQuery allows struct fields to be expanded with the star operator:
SELECT t.struct_col.* FROM table t
RisingWave also allows struct field expansion with the star operator using parentheses:
SELECT (t.struct_col).* FROM table t
This expands to all fields within the struct.
15 class Tokenizer(Postgres.Tokenizer): 16 KEYWORDS = { 17 **Postgres.Tokenizer.KEYWORDS, 18 "SINK": TokenType.SINK, 19 "SOURCE": TokenType.SOURCE, 20 }
Inherited Members
- sqlglot.tokens.Tokenizer
- Tokenizer
- RAW_STRINGS
- UNICODE_STRINGS
- IDENTIFIERS
- QUOTES
- STRING_ESCAPES
- ESCAPE_FOLLOW_CHARS
- IDENTIFIER_ESCAPES
- STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS
- NESTED_COMMENTS
- HINT_START
- TOKENS_PRECEDING_HINT
- WHITE_SPACE
- COMMANDS
- COMMAND_PREFIX_TOKENS
- NUMERIC_LITERALS
- COMMENTS
- dialect
- use_rs_tokenizer
- reset
- tokenize
- tokenize_rs
- size
- sql
- tokens
22 class Parser(Postgres.Parser): 23 WRAPPED_TRANSFORM_COLUMN_CONSTRAINT = False 24 25 PROPERTY_PARSERS = { 26 **Postgres.Parser.PROPERTY_PARSERS, 27 "ENCODE": lambda self: self._parse_encode_property(), 28 "INCLUDE": lambda self: self._parse_include_property(), 29 "KEY": lambda self: self._parse_encode_property(key=True), 30 } 31 32 CONSTRAINT_PARSERS = { 33 **Postgres.Parser.CONSTRAINT_PARSERS, 34 "WATERMARK": lambda self: self.expression( 35 exp.WatermarkColumnConstraint, 36 this=self._match(TokenType.FOR) and self._parse_column(), 37 expression=self._match(TokenType.ALIAS) and self._parse_disjunction(), 38 ), 39 } 40 41 SCHEMA_UNNAMED_CONSTRAINTS = { 42 *Postgres.Parser.SCHEMA_UNNAMED_CONSTRAINTS, 43 "WATERMARK", 44 } 45 46 def _parse_table_hints(self) -> t.Optional[t.List[exp.Expression]]: 47 # There is no hint in risingwave. 48 # Do nothing here to avoid WITH keywords conflict in CREATE SINK statement. 49 return None 50 51 def _parse_include_property(self) -> t.Optional[exp.Expression]: 52 header: t.Optional[exp.Expression] = None 53 coldef: t.Optional[exp.Expression] = None 54 55 this = self._parse_var_or_string() 56 57 if not self._match(TokenType.ALIAS): 58 header = self._parse_field() 59 if header: 60 coldef = self.expression(exp.ColumnDef, this=header, kind=self._parse_types()) 61 62 self._match(TokenType.ALIAS) 63 alias = self._parse_id_var(tokens=self.ALIAS_TOKENS) 64 65 return self.expression(exp.IncludeProperty, this=this, alias=alias, column_def=coldef) 66 67 def _parse_encode_property(self, key: t.Optional[bool] = None) -> exp.EncodeProperty: 68 self._match_text_seq("ENCODE") 69 this = self._parse_var_or_string() 70 71 if self._match(TokenType.L_PAREN, advance=False): 72 properties = self.expression( 73 exp.Properties, expressions=self._parse_wrapped_properties() 74 ) 75 else: 76 properties = None 77 78 return self.expression(exp.EncodeProperty, this=this, properties=properties, key=key)
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
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
- RESERVED_TOKENS
- DB_CREATABLES
- CREATABLES
- ALTERABLES
- ALIAS_TOKENS
- COLON_PLACEHOLDER_TOKENS
- ARRAY_CONSTRUCTORS
- COMMENT_TABLE_ALIAS_TOKENS
- UPDATE_ALIAS_TOKENS
- TRIM_TYPES
- FUNC_TOKENS
- CONJUNCTION
- ASSIGNMENT
- DISJUNCTION
- EQUALITY
- COMPARISON
- TERM
- FACTOR
- TIMES
- TIMESTAMPS
- SET_OPERATIONS
- JOIN_METHODS
- JOIN_SIDES
- JOIN_KINDS
- JOIN_HINTS
- LAMBDAS
- CAST_COLUMN_OPERATORS
- EXPRESSION_PARSERS
- UNARY_PARSERS
- STRING_PARSERS
- NUMERIC_PARSERS
- PRIMARY_PARSERS
- PIPE_SYNTAX_TRANSFORM_PARSERS
- ALTER_PARSERS
- ALTER_ALTER_PARSERS
- NO_PAREN_FUNCTION_PARSERS
- INVALID_FUNC_NAME_TOKENS
- FUNCTIONS_WITH_ALIASED_ARGS
- KEY_VALUE_DEFINITIONS
- QUERY_MODIFIER_PARSERS
- QUERY_MODIFIER_TOKENS
- SET_PARSERS
- SHOW_PARSERS
- TYPE_LITERAL_PARSERS
- TYPE_CONVERTERS
- DDL_SELECT_TOKENS
- PRE_VOLATILE_TOKENS
- TRANSACTION_KIND
- TRANSACTION_CHARACTERISTICS
- CONFLICT_ACTIONS
- 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
- 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
- DISTINCT_TOKENS
- UNNEST_OFFSET_ALIAS_TOKENS
- SELECT_START_TOKENS
- COPY_INTO_VARLEN_OPTIONS
- 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
- MODIFIABLES
- STRICT_CAST
- PREFIXED_PIVOT_COLUMNS
- IDENTIFY_PIVOT_STRINGS
- LOG_DEFAULTS_TO_LN
- TABLESAMPLE_CSV
- DEFAULT_SAMPLING_METHOD
- SET_REQUIRES_ASSIGNMENT_DELIMITER
- TRIM_PATTERN_FIRST
- STRING_ALIASES
- MODIFIERS_ATTACHED_TO_SET_OP
- SET_OP_MODIFIERS
- NO_PAREN_IF_COMMANDS
- COLON_IS_VARIANT_EXTRACT
- VALUES_FOLLOWED_BY_PAREN
- SUPPORTS_IMPLICIT_UNNEST
- INTERVAL_SPANS
- SUPPORTS_PARTITION_SELECTION
- OPTIONAL_ALIAS_TOKEN_CTE
- ALTER_RENAME_REQUIRES_COLUMN
- ALTER_TABLE_PARTITIONS
- JOINS_HAVE_EQUAL_PRECEDENCE
- ZONE_AWARE_TIMESTAMP_CONSTRUCTOR
- MAP_KEYS_ARE_ARBITRARY_EXPRESSIONS
- JSON_EXTRACT_REQUIRES_JSON_EXPRESSION
- ADD_JOIN_ON_TRUE
- error_level
- error_message_context
- max_errors
- dialect
- reset
- parse
- parse_into
- check_errors
- raise_error
- expression
- validate_expression
- parse_set_operation
- build_cast
- errors
- sql
80 class Generator(Postgres.Generator): 81 LOCKING_READS_SUPPORTED = False 82 SUPPORTS_BETWEEN_FLAGS = False 83 84 TRANSFORMS = { 85 **Postgres.Generator.TRANSFORMS, 86 exp.FileFormatProperty: lambda self, e: f"FORMAT {self.sql(e, 'this')}", 87 } 88 89 PROPERTIES_LOCATION = { 90 **Postgres.Generator.PROPERTIES_LOCATION, 91 exp.FileFormatProperty: exp.Properties.Location.POST_EXPRESSION, 92 } 93 94 EXPRESSION_PRECEDES_PROPERTIES_CREATABLES = {"SINK"} 95 96 def computedcolumnconstraint_sql(self, expression: exp.ComputedColumnConstraint) -> str: 97 return Generator.computedcolumnconstraint_sql(self, expression) 98 99 def datatype_sql(self, expression: exp.DataType) -> str: 100 if expression.is_type(exp.DataType.Type.MAP) and len(expression.expressions) == 2: 101 key_type, value_type = expression.expressions 102 return f"MAP({self.sql(key_type)}, {self.sql(value_type)})" 103 104 return super().datatype_sql(expression)
Generator converts a given syntax tree to the corresponding SQL string.
Arguments:
- pretty: Whether to format the produced SQL string. Default: False.
- identify: Determines when an identifier should be quoted. Possible values are: False (default): Never quote, except in cases where it's mandatory by the dialect. True: Always quote except for specials cases. 'safe': Only quote identifiers that are case insensitive.
- normalize: Whether to normalize identifiers to lowercase. Default: False.
- pad: The pad size in a formatted string. For example, this affects the indentation of a projection in a query, relative to its nesting level. Default: 2.
- indent: The indentation size in a formatted string. For example, this affects the
indentation of subqueries and filters under a
WHEREclause. Default: 2. - normalize_functions: How to normalize function names. Possible values are: "upper" or True (default): Convert names to uppercase. "lower": Convert names to lowercase. False: Disables function name normalization.
- unsupported_level: Determines the generator's behavior when it encounters unsupported expressions. Default ErrorLevel.WARN.
- max_unsupported: Maximum number of unsupported messages to include in a raised UnsupportedError. This is only relevant if unsupported_level is ErrorLevel.RAISE. Default: 3
- leading_comma: Whether the comma is leading or trailing in select expressions. This is only relevant when generating in pretty mode. Default: False
- max_text_width: The max number of characters in a segment before creating new lines in pretty mode. The default is on the smaller end because the length only represents a segment and not the true line length. Default: 80
- comments: Whether to preserve comments in the output SQL code. Default: True
99 def datatype_sql(self, expression: exp.DataType) -> str: 100 if expression.is_type(exp.DataType.Type.MAP) and len(expression.expressions) == 2: 101 key_type, value_type = expression.expressions 102 return f"MAP({self.sql(key_type)}, {self.sql(value_type)})" 103 104 return super().datatype_sql(expression)
Inherited Members
- sqlglot.generator.Generator
- Generator
- NULL_ORDERING_SUPPORTED
- IGNORE_NULLS_IN_FUNC
- EXCEPT_INTERSECT_SUPPORT_ALL_CLAUSE
- WRAP_DERIVED_VALUES
- CREATE_FUNCTION_RETURN_AS
- MATCHED_BY_SOURCE
- INTERVAL_ALLOWS_PLURAL_FORM
- LIMIT_FETCH
- LIMIT_ONLY_LITERALS
- GROUPINGS_SEP
- INDEX_ON
- QUERY_HINT_SEP
- IS_BOOL_ALLOWED
- DUPLICATE_KEY_UPDATE_WITH_SET
- LIMIT_IS_TOP
- RETURNING_END
- EXTRACT_ALLOWS_QUOTES
- TZ_TO_WITH_TIME_ZONE
- VALUES_AS_TABLE
- ALTER_TABLE_INCLUDE_COLUMN_KEYWORD
- UNNEST_WITH_ORDINALITY
- AGGREGATE_FILTER_SUPPORTED
- SEMI_ANTI_JOIN_WITH_SIDE
- COMPUTED_COLUMN_WITH_TYPE
- SUPPORTS_TABLE_COPY
- TABLESAMPLE_REQUIRES_PARENS
- TABLESAMPLE_KEYWORDS
- TABLESAMPLE_WITH_METHOD
- COLLATE_IS_FUNC
- DATA_TYPE_SPECIFIERS_ALLOWED
- ENSURE_BOOLS
- CTE_RECURSIVE_KEYWORD_REQUIRED
- SUPPORTS_SINGLE_ARG_CONCAT
- LAST_DAY_SUPPORTS_DATE_PART
- SUPPORTS_TABLE_ALIAS_COLUMNS
- UNPIVOT_ALIASES_ARE_IDENTIFIERS
- JSON_KEY_VALUE_PAIR_SEP
- INSERT_OVERWRITE
- SUPPORTS_CREATE_TABLE_LIKE
- JSON_PATH_BRACKETED_KEY_SUPPORTED
- JSON_PATH_SINGLE_QUOTE_ESCAPE
- SUPPORTS_TO_NUMBER
- SET_OP_MODIFIERS
- COPY_PARAMS_ARE_WRAPPED
- COPY_PARAMS_EQ_REQUIRED
- UNICODE_SUBSTITUTE
- STAR_EXCEPT
- HEX_FUNC
- WITH_PROPERTIES_PREFIX
- QUOTE_JSON_PATH
- PAD_FILL_PATTERN_IS_REQUIRED
- SUPPORTS_EXPLODING_PROJECTIONS
- SUPPORTS_CONVERT_TIMEZONE
- SUPPORTS_UNIX_SECONDS
- ALTER_SET_WRAPPED
- NORMALIZE_EXTRACT_DATE_PARTS
- PARSE_JSON_NAME
- ARRAY_SIZE_NAME
- ALTER_SET_TYPE
- SUPPORTS_LIKE_QUANTIFIERS
- MATCH_AGAINST_TABLE_PREFIX
- SET_ASSIGNMENT_REQUIRES_VARIABLE_KEYWORD
- UPDATE_STATEMENT_SUPPORTS_FROM
- UNSUPPORTED_TYPES
- TIME_PART_SINGULARS
- TOKEN_MAPPING
- STRUCT_DELIMITER
- RESERVED_KEYWORDS
- WITH_SEPARATED_COMMENTS
- EXCLUDE_COMMENTS
- UNWRAPPED_INTERVAL_VALUES
- PARAMETERIZABLE_TEXT_TYPES
- EXPRESSIONS_WITHOUT_NESTED_CTES
- RESPECT_IGNORE_NULLS_UNSUPPORTED_EXPRESSIONS
- SAFE_JSON_PATH_KEY_RE
- SENTINEL_LINE_BREAK
- pretty
- identify
- normalize
- pad
- unsupported_level
- max_unsupported
- leading_comma
- max_text_width
- comments
- dialect
- normalize_functions
- unsupported_messages
- generate
- preprocess
- unsupported
- sep
- seg
- sanitize_comment
- maybe_comment
- wrap
- no_identify
- normalize_func
- indent
- sql
- uncache_sql
- cache_sql
- characterset_sql
- column_parts
- column_sql
- pseudocolumn_sql
- columnposition_sql
- columndef_sql
- columnconstraint_sql
- autoincrementcolumnconstraint_sql
- compresscolumnconstraint_sql
- generatedasidentitycolumnconstraint_sql
- generatedasrowcolumnconstraint_sql
- periodforsystemtimeconstraint_sql
- notnullcolumnconstraint_sql
- primarykeycolumnconstraint_sql
- uniquecolumnconstraint_sql
- inoutcolumnconstraint_sql
- createable_sql
- create_sql
- sequenceproperties_sql
- clone_sql
- describe_sql
- heredoc_sql
- prepend_ctes
- with_sql
- cte_sql
- tablealias_sql
- bitstring_sql
- hexstring_sql
- bytestring_sql
- unicodestring_sql
- rawstring_sql
- datatypeparam_sql
- directory_sql
- delete_sql
- drop_sql
- set_operation
- set_operations
- fetch_sql
- limitoptions_sql
- filter_sql
- hint_sql
- indexparameters_sql
- index_sql
- identifier_sql
- hex_sql
- lowerhex_sql
- inputoutputformat_sql
- national_sql
- partition_sql
- properties_sql
- root_properties
- properties
- with_properties
- locate_properties
- property_name
- property_sql
- likeproperty_sql
- fallbackproperty_sql
- journalproperty_sql
- freespaceproperty_sql
- checksumproperty_sql
- mergeblockratioproperty_sql
- datablocksizeproperty_sql
- blockcompressionproperty_sql
- isolatedloadingproperty_sql
- partitionboundspec_sql
- partitionedofproperty_sql
- lockingproperty_sql
- withdataproperty_sql
- withsystemversioningproperty_sql
- insert_sql
- introducer_sql
- kill_sql
- pseudotype_sql
- objectidentifier_sql
- onconflict_sql
- returning_sql
- rowformatdelimitedproperty_sql
- withtablehint_sql
- indextablehint_sql
- historicaldata_sql
- table_parts
- table_sql
- tablefromrows_sql
- tablesample_sql
- pivot_sql
- version_sql
- tuple_sql
- update_sql
- values_sql
- var_sql
- into_sql
- from_sql
- groupingsets_sql
- rollup_sql
- cube_sql
- group_sql
- having_sql
- connect_sql
- prior_sql
- join_sql
- lambda_sql
- lateral_op
- lateral_sql
- limit_sql
- offset_sql
- setitem_sql
- set_sql
- queryband_sql
- pragma_sql
- lock_sql
- literal_sql
- escape_str
- loaddata_sql
- null_sql
- boolean_sql
- booland_sql
- boolor_sql
- order_sql
- withfill_sql
- cluster_sql
- distribute_sql
- sort_sql
- ordered_sql
- matchrecognizemeasure_sql
- matchrecognize_sql
- query_modifiers
- options_modifier
- for_modifiers
- queryoption_sql
- offset_limit_modifiers
- after_limit_modifiers
- select_sql
- schema_sql
- schema_columns_sql
- star_sql
- parameter_sql
- sessionparameter_sql
- subquery_sql
- qualify_sql
- prewhere_sql
- where_sql
- window_sql
- partition_by_sql
- windowspec_sql
- withingroup_sql
- between_sql
- bracket_offset_expressions
- all_sql
- any_sql
- exists_sql
- case_sql
- constraint_sql
- nextvaluefor_sql
- extract_sql
- trim_sql
- convert_concat_args
- concat_sql
- concatws_sql
- check_sql
- foreignkey_sql
- primarykey_sql
- if_sql
- jsonkeyvalue_sql
- jsonpath_sql
- json_path_part
- formatjson_sql
- formatphrase_sql
- jsonobject_sql
- jsonobjectagg_sql
- jsonarray_sql
- jsonarrayagg_sql
- jsoncolumndef_sql
- jsonschema_sql
- jsontable_sql
- openjsoncolumndef_sql
- openjson_sql
- in_sql
- in_unnest_op
- return_sql
- reference_sql
- anonymous_sql
- paren_sql
- neg_sql
- not_sql
- alias_sql
- pivotalias_sql
- aliases_sql
- atindex_sql
- attimezone_sql
- fromtimezone_sql
- add_sql
- and_sql
- or_sql
- xor_sql
- connector_sql
- bitwiseand_sql
- bitwiseleftshift_sql
- bitwisenot_sql
- bitwiseor_sql
- bitwiserightshift_sql
- bitwisexor_sql
- strtotime_sql
- currentdate_sql
- collate_sql
- command_sql
- comment_sql
- mergetreettlaction_sql
- mergetreettl_sql
- transaction_sql
- commit_sql
- rollback_sql
- altercolumn_sql
- alterindex_sql
- alterdiststyle_sql
- altersortkey_sql
- alterrename_sql
- renamecolumn_sql
- alter_sql
- altersession_sql
- add_column_sql
- droppartition_sql
- addconstraint_sql
- addpartition_sql
- distinct_sql
- havingmax_sql
- intdiv_sql
- dpipe_sql
- div_sql
- safedivide_sql
- overlaps_sql
- distance_sql
- dot_sql
- eq_sql
- propertyeq_sql
- escape_sql
- glob_sql
- gt_sql
- gte_sql
- is_sql
- like_sql
- ilike_sql
- match_sql
- similarto_sql
- lt_sql
- lte_sql
- mod_sql
- mul_sql
- neq_sql
- nullsafeeq_sql
- nullsafeneq_sql
- sub_sql
- trycast_sql
- jsoncast_sql
- try_sql
- log_sql
- use_sql
- binary
- ceil_floor
- function_fallback_sql
- func
- format_args
- too_wide
- format_time
- expressions
- op_expressions
- naked_property
- tag_sql
- token_sql
- userdefinedfunction_sql
- joinhint_sql
- kwarg_sql
- when_sql
- whens_sql
- merge_sql
- tochar_sql
- tonumber_sql
- dictproperty_sql
- dictrange_sql
- dictsubproperty_sql
- duplicatekeyproperty_sql
- uniquekeyproperty_sql
- distributedbyproperty_sql
- oncluster_sql
- clusteredbyproperty_sql
- anyvalue_sql
- querytransform_sql
- indexconstraintoption_sql
- checkcolumnconstraint_sql
- indexcolumnconstraint_sql
- nvl2_sql
- comprehension_sql
- columnprefix_sql
- opclass_sql
- predict_sql
- generateembedding_sql
- mltranslate_sql
- mlforecast_sql
- featuresattime_sql
- vectorsearch_sql
- forin_sql
- refresh_sql
- toarray_sql
- tsordstotime_sql
- tsordstotimestamp_sql
- tsordstodatetime_sql
- tsordstodate_sql
- unixdate_sql
- lastday_sql
- dateadd_sql
- arrayany_sql
- struct_sql
- partitionrange_sql
- truncatetable_sql
- convert_sql
- copyparameter_sql
- credentials_sql
- copy_sql
- semicolon_sql
- datadeletionproperty_sql
- maskingpolicycolumnconstraint_sql
- gapfill_sql
- scope_resolution
- scoperesolution_sql
- parsejson_sql
- rand_sql
- changes_sql
- pad_sql
- summarize_sql
- explodinggenerateseries_sql
- arrayconcat_sql
- converttimezone_sql
- json_sql
- jsonvalue_sql
- conditionalinsert_sql
- multitableinserts_sql
- oncondition_sql
- jsonextractquote_sql
- jsonexists_sql
- arrayagg_sql
- slice_sql
- apply_sql
- grant_sql
- revoke_sql
- grantprivilege_sql
- grantprincipal_sql
- columns_sql
- overlay_sql
- todouble_sql
- string_sql
- median_sql
- overflowtruncatebehavior_sql
- unixseconds_sql
- arraysize_sql
- attach_sql
- detach_sql
- attachoption_sql
- watermarkcolumnconstraint_sql
- encodeproperty_sql
- includeproperty_sql
- xmlelement_sql
- xmlkeyvalueoption_sql
- partitionbyrangeproperty_sql
- partitionbyrangepropertydynamic_sql
- unpivotcolumns_sql
- analyzesample_sql
- analyzestatistics_sql
- analyzehistogram_sql
- analyzedelete_sql
- analyzelistchainedrows_sql
- analyzevalidate_sql
- analyze_sql
- xmltable_sql
- xmlnamespace_sql
- export_sql
- declare_sql
- declareitem_sql
- recursivewithsearch_sql
- parameterizedagg_sql
- anonymousaggfunc_sql
- combinedaggfunc_sql
- combinedparameterizedagg_sql
- show_sql
- install_sql
- get_put_sql
- translatecharacters_sql
- decodecase_sql
- semanticview_sql
- getextract_sql
- datefromunixdate_sql
- space_sql
- buildproperty_sql
- refreshtriggerproperty_sql
- modelattribute_sql
- directorystage_sql
- uuid_sql
- initcap_sql
- localtime_sql
- localtimestamp_sql
- weekstart_sql
- chr_sql
- sqlglot.dialects.postgres.Postgres.Generator
- SINGLE_STRING_INTERVAL
- RENAME_TABLE_WITH_DB
- JOIN_HINTS
- TABLE_HINTS
- QUERY_HINTS
- NVL2_SUPPORTED
- PARAMETER_TOKEN
- NAMED_PLACEHOLDER_TOKEN
- TABLESAMPLE_SIZE_IS_ROWS
- TABLESAMPLE_SEED_KEYWORD
- SUPPORTS_SELECT_INTO
- JSON_TYPE_REQUIRED_FOR_EXTRACTION
- SUPPORTS_UNLOGGED_TABLES
- LIKE_PROPERTY_INSIDE_SCHEMA
- MULTI_ARG_DISTINCT
- CAN_IMPLEMENT_ARRAY_ANY
- SUPPORTS_WINDOW_EXCLUDE
- COPY_HAS_INTO_KEYWORD
- ARRAY_CONCAT_IS_VAR_LEN
- SUPPORTS_MEDIAN
- ARRAY_SIZE_DIM_REQUIRED
- SUPPORTED_JSON_PATH_PARTS
- TYPE_MAPPING
- schemacommentproperty_sql
- commentcolumnconstraint_sql
- unnest_sql
- bracket_sql
- matchagainst_sql
- alterset_sql
- cast_sql
- array_sql
- isascii_sql
- ignorenulls_sql
- respectnulls_sql
- currentschema_sql
- interval_sql
- placeholder_sql
- arraycontains_sql