sqlglot.dialects.snowflake
1from __future__ import annotations 2 3from sqlglot import exp, jsonpath, tokens 4from sqlglot.dialects.dialect import ( 5 Dialect, 6 NormalizationStrategy, 7) 8from sqlglot.generators.snowflake import SnowflakeGenerator 9from sqlglot.parsers.snowflake import ( 10 SnowflakeParser, 11) 12from sqlglot.tokens import TokenType 13from sqlglot.typing.snowflake import EXPRESSION_METADATA 14 15 16class Snowflake(Dialect): 17 # https://docs.snowflake.com/en/sql-reference/identifiers-syntax 18 NORMALIZATION_STRATEGY = NormalizationStrategy.UPPERCASE 19 # https://docs.snowflake.com/en/sql-reference/data-types-text#escape-sequences 20 UNESCAPED_SEQUENCES = {"\\a": "a", "\\v": "v"} 21 NULL_ORDERING = "nulls_are_large" 22 TIME_FORMAT = "'YYYY-MM-DD HH24:MI:SS'" 23 SUPPORTS_USER_DEFINED_TYPES = False 24 PREFER_CTE_ALIAS_COLUMN = True 25 SUPPORTS_POSITIONAL_COLUMN_REFS = True 26 TABLESAMPLE_SIZE_IS_PERCENT = True 27 COPY_PARAMS_ARE_CSV = False 28 ARRAY_AGG_INCLUDES_NULLS = None 29 ARRAY_FUNCS_PROPAGATES_NULLS = True 30 ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN = False 31 TRY_CAST_REQUIRES_STRING = True 32 SUPPORTS_ALIAS_REFS_IN_JOIN_CONDITIONS = True 33 LEAST_GREATEST_IGNORES_NULLS = False 34 UUID_IS_STRING_TYPE = True 35 STAR_ILIKE_BACKSLASH_ESCAPE = True 36 37 EXPRESSION_METADATA = EXPRESSION_METADATA.copy() 38 39 # https://docs.snowflake.com/en/en/sql-reference/functions/initcap 40 INITCAP_DEFAULT_DELIMITER_CHARS = ' \t\n\r\f\v!?@"^#$&~_,.:;+\\-*%/|\\[\\](){}<>' 41 42 INVERSE_TIME_MAPPING = { 43 "T": "T", # in TIME_MAPPING we map '"T"' with the double quotes to 'T', and we want to prevent 'T' from being mapped back to '"T"' so that 'AUTO' doesn't become 'AU"T"O' 44 } 45 46 TIME_MAPPING = { 47 "YYYY": "%Y", 48 "yyyy": "%Y", 49 "YY": "%y", 50 "yy": "%y", 51 "MMMM": "%B", 52 "mmmm": "%B", 53 "MON": "%b", 54 "mon": "%b", 55 "MM": "%m", 56 "mm": "%m", 57 "DD": "%d", 58 "dd": "%-d", 59 "DY": "%a", 60 "dy": "%w", 61 "HH24": "%H", 62 "hh24": "%H", 63 "HH12": "%I", 64 "hh12": "%I", 65 "MI": "%M", 66 "mi": "%M", 67 "SS": "%S", 68 "ss": "%S", 69 "FF": "%f_nine", # %f_ internal representation with precision specified 70 "ff": "%f_nine", 71 "FF0": "%f_zero", 72 "ff0": "%f_zero", 73 "FF1": "%f_one", 74 "ff1": "%f_one", 75 "FF2": "%f_two", 76 "ff2": "%f_two", 77 "FF3": "%f_three", 78 "ff3": "%f_three", 79 "FF4": "%f_four", 80 "ff4": "%f_four", 81 "FF5": "%f_five", 82 "ff5": "%f_five", 83 "FF6": "%f", 84 "ff6": "%f", 85 "FF7": "%f_seven", 86 "ff7": "%f_seven", 87 "FF8": "%f_eight", 88 "ff8": "%f_eight", 89 "FF9": "%f_nine", 90 "ff9": "%f_nine", 91 "TZHTZM": "%z", 92 "tzhtzm": "%z", 93 "TZH:TZM": "%:z", # internal representation for ±HH:MM 94 "tzh:tzm": "%:z", 95 "TZH": "%-z", # internal representation ±HH 96 "tzh": "%-z", 97 '"T"': "T", # remove the optional double quotes around the separator between the date and time 98 # Seems like Snowflake treats AM/PM in the format string as equivalent, 99 # only the time (stamp) value's AM/PM affects the output 100 "AM": "%p", 101 "am": "%p", 102 "PM": "%p", 103 "pm": "%p", 104 } 105 106 DATE_PART_MAPPING = { 107 **Dialect.DATE_PART_MAPPING, 108 "ISOWEEK": "WEEKISO", 109 # The base Dialect maps EPOCH_SECOND -> EPOCH, but we need to preserve 110 # EPOCH_SECOND as a distinct value for two reasons: 111 # 1. Type annotation: EPOCH_SECOND returns BIGINT, while EPOCH returns DOUBLE 112 # 2. Transpilation: DuckDB's EPOCH() returns float, so we cast EPOCH_SECOND 113 # to BIGINT to match Snowflake's integer behavior 114 # Without this override, EXTRACT(EPOCH_SECOND FROM ts) would be normalized 115 # to EXTRACT(EPOCH FROM ts) and lose the integer semantics. 116 "EPOCH_SECOND": "EPOCH_SECOND", 117 "EPOCH_SECONDS": "EPOCH_SECOND", 118 } 119 120 PSEUDOCOLUMNS = {"LEVEL"} 121 122 def can_quote(self, identifier: exp.Identifier, identify: str | bool = "safe") -> bool: 123 # This disables quoting DUAL in SELECT ... FROM DUAL, because Snowflake treats an 124 # unquoted DUAL keyword in a special way and does not map it to a user-defined table 125 return super().can_quote(identifier, identify) and not ( 126 isinstance(identifier.parent, exp.Table) 127 and not identifier.quoted 128 and identifier.name.lower() == "dual" 129 ) 130 131 class JSONPathTokenizer(jsonpath.JSONPathTokenizer): 132 SINGLE_TOKENS = jsonpath.JSONPathTokenizer.SINGLE_TOKENS.copy() 133 SINGLE_TOKENS.pop("$") 134 135 Parser = SnowflakeParser 136 137 class Tokenizer(tokens.Tokenizer): 138 STRING_ESCAPES = ["\\", "'"] 139 HEX_STRINGS = [("x'", "'"), ("X'", "'")] 140 RAW_STRINGS = ["$$"] 141 COMMENTS = ["--", "//", ("/*", "*/")] 142 NESTED_COMMENTS = False 143 144 KEYWORDS = { 145 **tokens.Tokenizer.KEYWORDS, 146 "BYTEINT": TokenType.INT, 147 "FILE://": TokenType.URI_START, 148 "FILE FORMAT": TokenType.FILE_FORMAT, 149 "GET": TokenType.GET, 150 "INTEGRATION": TokenType.INTEGRATION, 151 "MATCH_CONDITION": TokenType.MATCH_CONDITION, 152 "MATCH_RECOGNIZE": TokenType.MATCH_RECOGNIZE, 153 "MINUS": TokenType.EXCEPT, 154 "NCHAR VARYING": TokenType.VARCHAR, 155 "PACKAGE": TokenType.PACKAGE, 156 "POLICY": TokenType.POLICY, 157 "POOL": TokenType.POOL, 158 "PUT": TokenType.PUT, 159 "UNDROP": TokenType.UNDROP, 160 "REMOVE": TokenType.COMMAND, 161 "RM": TokenType.COMMAND, 162 "ROLE": TokenType.ROLE, 163 "RULE": TokenType.RULE, 164 "SAMPLE": TokenType.TABLE_SAMPLE, 165 "SEMANTIC VIEW": TokenType.SEMANTIC_VIEW, 166 "SQL_DOUBLE": TokenType.DOUBLE, 167 "SQL_VARCHAR": TokenType.VARCHAR, 168 "STAGE": TokenType.STAGE, 169 "STORAGE INTEGRATION": TokenType.STORAGE_INTEGRATION, 170 "STREAMLIT": TokenType.STREAMLIT, 171 "TAG": TokenType.TAG, 172 "TIMESTAMP_TZ": TokenType.TIMESTAMPTZ, 173 "TOP": TokenType.TOP, 174 "VOLUME": TokenType.VOLUME, 175 "WAREHOUSE": TokenType.WAREHOUSE, 176 # https://docs.snowflake.com/en/sql-reference/data-types-numeric#float 177 # FLOAT is a synonym for DOUBLE in Snowflake 178 "FLOAT": TokenType.DOUBLE, 179 } 180 KEYWORDS.pop("/*+") 181 182 SINGLE_TOKENS = { 183 **tokens.Tokenizer.SINGLE_TOKENS, 184 "$": TokenType.PARAMETER, 185 "!": TokenType.EXCLAMATION, 186 } 187 188 VAR_SINGLE_TOKENS = {"$"} 189 190 COMMANDS = tokens.Tokenizer.COMMANDS - {TokenType.SHOW} 191 192 Generator = SnowflakeGenerator
17class Snowflake(Dialect): 18 # https://docs.snowflake.com/en/sql-reference/identifiers-syntax 19 NORMALIZATION_STRATEGY = NormalizationStrategy.UPPERCASE 20 # https://docs.snowflake.com/en/sql-reference/data-types-text#escape-sequences 21 UNESCAPED_SEQUENCES = {"\\a": "a", "\\v": "v"} 22 NULL_ORDERING = "nulls_are_large" 23 TIME_FORMAT = "'YYYY-MM-DD HH24:MI:SS'" 24 SUPPORTS_USER_DEFINED_TYPES = False 25 PREFER_CTE_ALIAS_COLUMN = True 26 SUPPORTS_POSITIONAL_COLUMN_REFS = True 27 TABLESAMPLE_SIZE_IS_PERCENT = True 28 COPY_PARAMS_ARE_CSV = False 29 ARRAY_AGG_INCLUDES_NULLS = None 30 ARRAY_FUNCS_PROPAGATES_NULLS = True 31 ALTER_TABLE_ADD_REQUIRED_FOR_EACH_COLUMN = False 32 TRY_CAST_REQUIRES_STRING = True 33 SUPPORTS_ALIAS_REFS_IN_JOIN_CONDITIONS = True 34 LEAST_GREATEST_IGNORES_NULLS = False 35 UUID_IS_STRING_TYPE = True 36 STAR_ILIKE_BACKSLASH_ESCAPE = True 37 38 EXPRESSION_METADATA = EXPRESSION_METADATA.copy() 39 40 # https://docs.snowflake.com/en/en/sql-reference/functions/initcap 41 INITCAP_DEFAULT_DELIMITER_CHARS = ' \t\n\r\f\v!?@"^#$&~_,.:;+\\-*%/|\\[\\](){}<>' 42 43 INVERSE_TIME_MAPPING = { 44 "T": "T", # in TIME_MAPPING we map '"T"' with the double quotes to 'T', and we want to prevent 'T' from being mapped back to '"T"' so that 'AUTO' doesn't become 'AU"T"O' 45 } 46 47 TIME_MAPPING = { 48 "YYYY": "%Y", 49 "yyyy": "%Y", 50 "YY": "%y", 51 "yy": "%y", 52 "MMMM": "%B", 53 "mmmm": "%B", 54 "MON": "%b", 55 "mon": "%b", 56 "MM": "%m", 57 "mm": "%m", 58 "DD": "%d", 59 "dd": "%-d", 60 "DY": "%a", 61 "dy": "%w", 62 "HH24": "%H", 63 "hh24": "%H", 64 "HH12": "%I", 65 "hh12": "%I", 66 "MI": "%M", 67 "mi": "%M", 68 "SS": "%S", 69 "ss": "%S", 70 "FF": "%f_nine", # %f_ internal representation with precision specified 71 "ff": "%f_nine", 72 "FF0": "%f_zero", 73 "ff0": "%f_zero", 74 "FF1": "%f_one", 75 "ff1": "%f_one", 76 "FF2": "%f_two", 77 "ff2": "%f_two", 78 "FF3": "%f_three", 79 "ff3": "%f_three", 80 "FF4": "%f_four", 81 "ff4": "%f_four", 82 "FF5": "%f_five", 83 "ff5": "%f_five", 84 "FF6": "%f", 85 "ff6": "%f", 86 "FF7": "%f_seven", 87 "ff7": "%f_seven", 88 "FF8": "%f_eight", 89 "ff8": "%f_eight", 90 "FF9": "%f_nine", 91 "ff9": "%f_nine", 92 "TZHTZM": "%z", 93 "tzhtzm": "%z", 94 "TZH:TZM": "%:z", # internal representation for ±HH:MM 95 "tzh:tzm": "%:z", 96 "TZH": "%-z", # internal representation ±HH 97 "tzh": "%-z", 98 '"T"': "T", # remove the optional double quotes around the separator between the date and time 99 # Seems like Snowflake treats AM/PM in the format string as equivalent, 100 # only the time (stamp) value's AM/PM affects the output 101 "AM": "%p", 102 "am": "%p", 103 "PM": "%p", 104 "pm": "%p", 105 } 106 107 DATE_PART_MAPPING = { 108 **Dialect.DATE_PART_MAPPING, 109 "ISOWEEK": "WEEKISO", 110 # The base Dialect maps EPOCH_SECOND -> EPOCH, but we need to preserve 111 # EPOCH_SECOND as a distinct value for two reasons: 112 # 1. Type annotation: EPOCH_SECOND returns BIGINT, while EPOCH returns DOUBLE 113 # 2. Transpilation: DuckDB's EPOCH() returns float, so we cast EPOCH_SECOND 114 # to BIGINT to match Snowflake's integer behavior 115 # Without this override, EXTRACT(EPOCH_SECOND FROM ts) would be normalized 116 # to EXTRACT(EPOCH FROM ts) and lose the integer semantics. 117 "EPOCH_SECOND": "EPOCH_SECOND", 118 "EPOCH_SECONDS": "EPOCH_SECOND", 119 } 120 121 PSEUDOCOLUMNS = {"LEVEL"} 122 123 def can_quote(self, identifier: exp.Identifier, identify: str | bool = "safe") -> bool: 124 # This disables quoting DUAL in SELECT ... FROM DUAL, because Snowflake treats an 125 # unquoted DUAL keyword in a special way and does not map it to a user-defined table 126 return super().can_quote(identifier, identify) and not ( 127 isinstance(identifier.parent, exp.Table) 128 and not identifier.quoted 129 and identifier.name.lower() == "dual" 130 ) 131 132 class JSONPathTokenizer(jsonpath.JSONPathTokenizer): 133 SINGLE_TOKENS = jsonpath.JSONPathTokenizer.SINGLE_TOKENS.copy() 134 SINGLE_TOKENS.pop("$") 135 136 Parser = SnowflakeParser 137 138 class Tokenizer(tokens.Tokenizer): 139 STRING_ESCAPES = ["\\", "'"] 140 HEX_STRINGS = [("x'", "'"), ("X'", "'")] 141 RAW_STRINGS = ["$$"] 142 COMMENTS = ["--", "//", ("/*", "*/")] 143 NESTED_COMMENTS = False 144 145 KEYWORDS = { 146 **tokens.Tokenizer.KEYWORDS, 147 "BYTEINT": TokenType.INT, 148 "FILE://": TokenType.URI_START, 149 "FILE FORMAT": TokenType.FILE_FORMAT, 150 "GET": TokenType.GET, 151 "INTEGRATION": TokenType.INTEGRATION, 152 "MATCH_CONDITION": TokenType.MATCH_CONDITION, 153 "MATCH_RECOGNIZE": TokenType.MATCH_RECOGNIZE, 154 "MINUS": TokenType.EXCEPT, 155 "NCHAR VARYING": TokenType.VARCHAR, 156 "PACKAGE": TokenType.PACKAGE, 157 "POLICY": TokenType.POLICY, 158 "POOL": TokenType.POOL, 159 "PUT": TokenType.PUT, 160 "UNDROP": TokenType.UNDROP, 161 "REMOVE": TokenType.COMMAND, 162 "RM": TokenType.COMMAND, 163 "ROLE": TokenType.ROLE, 164 "RULE": TokenType.RULE, 165 "SAMPLE": TokenType.TABLE_SAMPLE, 166 "SEMANTIC VIEW": TokenType.SEMANTIC_VIEW, 167 "SQL_DOUBLE": TokenType.DOUBLE, 168 "SQL_VARCHAR": TokenType.VARCHAR, 169 "STAGE": TokenType.STAGE, 170 "STORAGE INTEGRATION": TokenType.STORAGE_INTEGRATION, 171 "STREAMLIT": TokenType.STREAMLIT, 172 "TAG": TokenType.TAG, 173 "TIMESTAMP_TZ": TokenType.TIMESTAMPTZ, 174 "TOP": TokenType.TOP, 175 "VOLUME": TokenType.VOLUME, 176 "WAREHOUSE": TokenType.WAREHOUSE, 177 # https://docs.snowflake.com/en/sql-reference/data-types-numeric#float 178 # FLOAT is a synonym for DOUBLE in Snowflake 179 "FLOAT": TokenType.DOUBLE, 180 } 181 KEYWORDS.pop("/*+") 182 183 SINGLE_TOKENS = { 184 **tokens.Tokenizer.SINGLE_TOKENS, 185 "$": TokenType.PARAMETER, 186 "!": TokenType.EXCLAMATION, 187 } 188 189 VAR_SINGLE_TOKENS = {"$"} 190 191 COMMANDS = tokens.Tokenizer.COMMANDS - {TokenType.SHOW} 192 193 Generator = SnowflakeGenerator
Specifies the strategy according to which identifiers should be normalized.
Mapping of an escaped sequence (\n) to its unescaped version (
).
Default NULL ordering method to use if not explicitly set.
Possible values: "nulls_are_small", "nulls_are_large", "nulls_are_last"
Some dialects, such as Snowflake, allow you to reference a CTE column alias in the HAVING clause of the CTE. This flag will cause the CTE alias columns to override any projection aliases in the subquery.
For example, WITH y(c) AS ( SELECT SUM(a) FROM (SELECT 1 a) AS x HAVING c > 0 ) SELECT c FROM y;
will be rewritten as
WITH y(c) AS (
SELECT SUM(a) AS c FROM (SELECT 1 AS a) AS x HAVING c > 0
) SELECT c FROM y;
Whether qualified $N references the Nth column of their source.
Whether Array update functions return NULL when the input array is NULL.
Whether alias references are allowed in JOIN ... ON clauses.
Most dialects do not support this, but Snowflake allows alias expansion in the JOIN ... ON clause (and almost everywhere else)
For example, in Snowflake: SELECT a.id AS user_id FROM a JOIN b ON user_id = b.id -- VALID
Reference: sqlglot.dialects.snowflake.com/en/sql-reference/sql/select#usage-notes">https://docssqlglot.dialects.snowflake.com/en/sql-reference/sql/select#usage-notes
Whether LEAST/GREATEST functions ignore NULL values, e.g:
- BigQuery, Snowflake, MySQL, Presto/Trino: LEAST(1, NULL, 2) -> NULL
- Spark, Postgres, DuckDB, TSQL: LEAST(1, NULL, 2) -> 1
Whether a backslash in a SELECT * ILIKE '<pattern>' filter escapes the following character,
so that e.g. \_ matches a literal underscore (Snowflake). When False, backslashes in the
pattern are matched literally (DuckDB).
Associates this dialect's time formats with their equivalent Python strftime formats.
Columns that are auto-generated by the engine corresponding to this dialect.
For example, such columns may be excluded from SELECT * queries.
123 def can_quote(self, identifier: exp.Identifier, identify: str | bool = "safe") -> bool: 124 # This disables quoting DUAL in SELECT ... FROM DUAL, because Snowflake treats an 125 # unquoted DUAL keyword in a special way and does not map it to a user-defined table 126 return super().can_quote(identifier, identify) and not ( 127 isinstance(identifier.parent, exp.Table) 128 and not identifier.quoted 129 and identifier.name.lower() == "dual" 130 )
Checks if an identifier can be quoted
Arguments:
- identifier: The identifier to check.
- identify:
True: Always returnsTrueexcept for certain cases."safe": Only returnsTrueif the identifier is case-insensitive."unsafe": Only returnsTrueif the identifier is case-sensitive.
Returns:
Whether the given text can be identified.
Whether string literals support escape sequences (e.g. \n). Set by the metaclass based on the tokenizer's STRING_ESCAPES.
Whether byte string literals support escape sequences. Set by the metaclass based on the tokenizer's BYTE_STRING_ESCAPES.
132 class JSONPathTokenizer(jsonpath.JSONPathTokenizer): 133 SINGLE_TOKENS = jsonpath.JSONPathTokenizer.SINGLE_TOKENS.copy() 134 SINGLE_TOKENS.pop("$")
Inherited Members
- sqlglot.tokens.Tokenizer
- Tokenizer
- BIT_STRINGS
- BYTE_STRINGS
- HEX_STRINGS
- RAW_STRINGS
- HEREDOC_STRINGS
- UNICODE_STRINGS
- IDENTIFIERS
- QUOTES
- VAR_SINGLE_TOKENS
- ESCAPE_FOLLOW_CHARS
- HEREDOC_TAG_IS_IDENTIFIER
- HEREDOC_STRING_ALTERNATIVE
- STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS
- NESTED_COMMENTS
- HINT_START
- TOKENS_PRECEDING_HINT
- COMMANDS
- COMMAND_PREFIX_TOKENS
- NUMERIC_LITERALS
- COMMENTS
- dialect
- tokenize
- sql
- size
- tokens
138 class Tokenizer(tokens.Tokenizer): 139 STRING_ESCAPES = ["\\", "'"] 140 HEX_STRINGS = [("x'", "'"), ("X'", "'")] 141 RAW_STRINGS = ["$$"] 142 COMMENTS = ["--", "//", ("/*", "*/")] 143 NESTED_COMMENTS = False 144 145 KEYWORDS = { 146 **tokens.Tokenizer.KEYWORDS, 147 "BYTEINT": TokenType.INT, 148 "FILE://": TokenType.URI_START, 149 "FILE FORMAT": TokenType.FILE_FORMAT, 150 "GET": TokenType.GET, 151 "INTEGRATION": TokenType.INTEGRATION, 152 "MATCH_CONDITION": TokenType.MATCH_CONDITION, 153 "MATCH_RECOGNIZE": TokenType.MATCH_RECOGNIZE, 154 "MINUS": TokenType.EXCEPT, 155 "NCHAR VARYING": TokenType.VARCHAR, 156 "PACKAGE": TokenType.PACKAGE, 157 "POLICY": TokenType.POLICY, 158 "POOL": TokenType.POOL, 159 "PUT": TokenType.PUT, 160 "UNDROP": TokenType.UNDROP, 161 "REMOVE": TokenType.COMMAND, 162 "RM": TokenType.COMMAND, 163 "ROLE": TokenType.ROLE, 164 "RULE": TokenType.RULE, 165 "SAMPLE": TokenType.TABLE_SAMPLE, 166 "SEMANTIC VIEW": TokenType.SEMANTIC_VIEW, 167 "SQL_DOUBLE": TokenType.DOUBLE, 168 "SQL_VARCHAR": TokenType.VARCHAR, 169 "STAGE": TokenType.STAGE, 170 "STORAGE INTEGRATION": TokenType.STORAGE_INTEGRATION, 171 "STREAMLIT": TokenType.STREAMLIT, 172 "TAG": TokenType.TAG, 173 "TIMESTAMP_TZ": TokenType.TIMESTAMPTZ, 174 "TOP": TokenType.TOP, 175 "VOLUME": TokenType.VOLUME, 176 "WAREHOUSE": TokenType.WAREHOUSE, 177 # https://docs.snowflake.com/en/sql-reference/data-types-numeric#float 178 # FLOAT is a synonym for DOUBLE in Snowflake 179 "FLOAT": TokenType.DOUBLE, 180 } 181 KEYWORDS.pop("/*+") 182 183 SINGLE_TOKENS = { 184 **tokens.Tokenizer.SINGLE_TOKENS, 185 "$": TokenType.PARAMETER, 186 "!": TokenType.EXCLAMATION, 187 } 188 189 VAR_SINGLE_TOKENS = {"$"} 190 191 COMMANDS = tokens.Tokenizer.COMMANDS - {TokenType.SHOW}
Inherited Members
- sqlglot.tokens.Tokenizer
- Tokenizer
- BIT_STRINGS
- BYTE_STRINGS
- HEREDOC_STRINGS
- UNICODE_STRINGS
- IDENTIFIERS
- QUOTES
- ESCAPE_FOLLOW_CHARS
- IDENTIFIER_ESCAPES
- HEREDOC_TAG_IS_IDENTIFIER
- HEREDOC_STRING_ALTERNATIVE
- STRING_ESCAPES_ALLOWED_IN_RAW_STRINGS
- HINT_START
- TOKENS_PRECEDING_HINT
- COMMAND_PREFIX_TOKENS
- NUMERIC_LITERALS
- NUMBERS_CAN_HAVE_DECIMALS
- dialect
- tokenize
- sql
- size
- tokens