SnowDuck supports 150+ Snowflake functions across all categories. Functions are
either natively supported by DuckDB or transpiled automatically.
Matching a function’s name is not the same as matching its behaviour. See
Snowflake Semantics for the cases where Snowflake
differs from the obvious DuckDB translation - those are pinned by an
executable conformance suite.
String Functions
Function
Status
Notes
CONCAT
✅
CONCAT_WS
✅
LENGTH / LEN
✅
UPPER
✅
LOWER
✅
TRIM / LTRIM / RTRIM
✅
LPAD / RPAD
✅
LEFT / RIGHT
✅
SUBSTRING / SUBSTR
✅
REPLACE
✅
SPLIT_PART
✅
SPLIT
✅
Returns array
REVERSE
✅
REPEAT
✅
INITCAP
✅
Via macro
SOUNDEX
✅
Via macro
TRANSLATE
✅
OCTET_LENGTH
✅
Bytes, where LENGTH counts characters
COLLATION
⚠️
Always NULL: nothing local carries a stored collation
INSERT
✅
Splices a substring
RTRIMMED_LENGTH
✅
EDITDISTANCE
✅
Levenshtein
JAROWINKLER_SIMILARITY
✅
Integer 0-100, as Snowflake reports it
PARSE_URL
✅
Decodes escapes and exposes parameters as an object
CHARINDEX / POSITION
✅
STARTSWITH / ENDSWITH
✅
CONTAINS
✅
SPLIT_TO_TABLE
✅
Via TABLE(...)
COLLATE
⚠️
Case-insensitive specifiers only (-ci)
Regular Expression Functions
Function
Status
Notes
REGEXP_LIKE / RLIKE
✅
Anchored at both ends, as in Snowflake
REGEXP_REPLACE
✅
Replaces all occurrences by default
REGEXP_SUBSTR
✅
NULL when no match; position/occurrence/group supported
REGEXP_SUBSTR_ALL
✅
Returns every match
REGEXP_COUNT
✅
Optional start position
REGEXP_INSTR
✅
1-based; 0 when no match
Snowflake’s REGEXP_LIKE implicitly anchors its pattern, and
REGEXP_REPLACE replaces every match by default. Both differ from most
other SQL dialects - see Snowflake Semantics.
Date/Time Functions
Function
Status
Notes
CURRENT_DATE
✅
CURRENT_TIME
✅
CURRENT_TIMESTAMP
✅
GETDATE / SYSDATE
✅
DATE_PART / EXTRACT
✅
DATE_TRUNC
✅
DATEADD / TIMESTAMPADD
✅
DATEDIFF / TIMESTAMPDIFF
✅
YEAR / MONTH / DAY
✅
HOUR / MINUTE / SECOND
✅
DAYOFWEEK / DAYOFYEAR
✅
WEEKOFYEAR / QUARTER
✅
TO_DATE
✅
TO_TIME
✅
TO_TIMESTAMP
✅
TO_CHAR
✅
Date formatting
LAST_DAY
✅
NEXT_DAY
✅
Never returns the input date
PREVIOUS_DAY
✅
Never returns the input date
DAYNAME / MONTHNAME
✅
Three-letter abbreviation (Mon, Jan)
TIME_SLICE
✅
START and END
YEAROFWEEK / YEAROFWEEKISO
✅
MONTHS_BETWEEN
✅
Date Literals
SnowDuck supports Snowflake’s date literal syntax:
The AS_ family tests the stored type rather than coercing to it, as
Snowflake does — AS_INTEGER(PARSE_JSON('"5"')) is NULL, not 5. See
Snowflake Semantics.
Function
Status
Notes
IS_ARRAY / IS_OBJECT
✅
IS_NULL_VALUE
✅
JSON null, not SQL NULL
IS_INTEGER / IS_DOUBLE / IS_DECIMAL / IS_REAL
✅
IS_BOOLEAN / IS_VARCHAR / IS_CHAR
✅
IS_DATE / IS_DATE_VALUE / IS_TIME
⚠️
The VARIANT is a string that reads back as that type