SnowConvert AI - Vertica - Predicates¶
ALL & ANY array expressions¶
Description¶
An expression used to evaluate and compare each element of an array against a specified expression. (Vertica Language Reference ANY & ALL (array))
Grammar Syntax¶
To support this expression SnowConvert AI translates the <> ALL to NOT IN and the = ANY to IN
Sample Source Patterns¶
Input Code:¶
Output Code:¶
Known Issues¶
There are no known issues
LIKE¶
LIKE Predicate
Description¶
Retrieves rows where a string expression—typically a column—matches the specified pattern or, if qualified by ANY or ALL, set of patterns (Vertica SQL Language Reference Like Predicate)
Grammar Syntax¶
Vertica Substitute symbols¶
Symbol |
Vertica Equivalent |
Snowflake Equivalent |
|---|---|---|
~~ |
LIKE |
LIKE |
~# |
LIKEB |
LIKE |
~~* |
ILIKE |
ILIKE |
~#* |
ILIKEB |
ILIKE |
!~~ |
NOT LIKE |
NOT LIKE |
!~# |
NOT LIKEB |
NOT LIKE |
!~~* |
NOT ILIKE |
NOT ILIKE |
!~#* |
NOT ILIKEB |
NOT ILIKE |
In Vertica, the default escape character is the backslash (\). Snowflake doesn’t have a default escape character. SnowConvert AI will automatically add the ESCAPE clause when needed.
It’s important to know that Snowflake requires the backslash to be escaped (\\) when you use it as an escape character within both the expression and the ESCAPE clause. This means you’ll need two backslashes to represent a single literal backslash escape character in Snowflake queries. SnowConvert AI handles this by automatically escaping the backslash for you.
Sample Source Patterns¶
Success
This syntax is fully supported in Snowflake.
Vertica¶
Snowflake¶
Known Issues¶
While SnowConvert AI handles most backslash patterns, some complex expressions may still cause query failures. We recommend reviewing complex patterns to prevent these issues.
Related EWIs¶
There are no related EWIs.