Vertica - Identifier differences between Vertica and Snowflake¶
Quoted identifiers¶
In Vertica, quoted identifiers stick to the case sensitivity rules (https://docs.vertica.com/25.1.x/en/sql-reference/language-elements/identifiers/#case-sensitivity), which means that, for example, column names are still case insensitive even when quoted. Thus, identifiers "ABC", "ABc", and "aBc" are synonymous, as are ABC, ABc, and aBc :
Vertica¶
In Snowflake, case sensitivity of quoted identifiers depends on the session parameter QUOTED_IDENTIFIERS_IGNORE_CASE, by default quoted identifiers comparison is case sensitive, this means that the result code from migrating the above example:
Snowflake¶
Will fail when executing the second select unless the session parameter is set to TRUE.
How quoted identifiers are migrated¶
Quoted identifiers are analyzed to determine if they contain non-alphanumeric characters or are reserved words in Snowflake, if they do they will be left as they are, alphanumeric identifiers will be left unquoted: