What works
- Query syntax:
SELECT,FROM, joins includingNATURALandUSING,LATERAL, set operations,QUALIFY,GROUP BY ALL,GROUPING SETS,ROLLUP,CUBE, CTEs, andSELECT * EXCLUDE. - Data types:
NUMBER,FLOAT,BOOLEAN,VARCHAR,BINARY,DATE,TIMESTAMP_NTZ,TIMESTAMP_LTZ,TIMESTAMP_TZ,ARRAY, andGEOGRAPHY. - Operators: arithmetic, comparison, and logical operators, the
::cast, the:path operator,ILIKE,RLIKE, andLIKE ANY. - Functions:
- Aggregate:
ANY_VALUE,APPROX_COUNT_DISTINCT,APPROX_PERCENTILE,ARRAY_AGG,AVG,CORR, and more. - Bitwise:
BITNOT,BITSHIFTLEFT,BITSHIFTRIGHT,BIT_NOT,GETBIT. - Conditional:
COALESCE,GREATEST,IFF,IFNULL,LEAST,NOT, and more. - Context:
CURRENT_DATABASE,CURRENT_SCHEMA,CURRENT_TRANSACTION,CURRENT_USER. - Conversion: none available.
- Date and time: none available.
- Geospatial: none available.
- Hash:
HASH,HASH_AGG, with limitations. - Numeric:
ABS,ACOS,ASIN,ATAN2,ATAN,CBRT, and more. - Regular expressions:
REGEXP_EXTRACT_ALL,REGEXP_LIKE. - Semi-structured:
ARRAYS_OVERLAP,ARRAY_CAT,ARRAY_DISTINCT,ARRAY_MAX,ARRAY_MIN,ARRAY_REVERSE, and more. - String and binary:
ASCII,CONCAT,LEFT,LENGTH,LIKE,LOWER, and more. - Window:
CUME_DIST,DENSE_RANK,FIRST_VALUE,LAG,LAST_VALUE,LEAD, and more.
- Aggregate:
- Statements:
CREATE TABLE,CREATE VIEW,CREATE SCHEMA,DROP,ALTER TABLE,INSERT,UPDATE,DELETE, andTRUNCATE TABLE.
Enable the mode
Set thedialect session setting to snowflake:
?dialect=snowflake) or in a WITH (dialect='snowflake') clause. Return to native Firebolt SQL with:
firebolt. Only snowflake selects Snowflake mode.