Built-in functions

Translation reference for all the supported built-in functions by SnowConvert for BigQuery.

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

circle-info

For more information about built-in functions and their Snowflake equivalents, also see Common built-in functions.

Aggregate Functions

Conditional Expressions

Conversion Functions

Date Functions

Datetime Functions

Geography Functions

BigQuery
Snowflake

ST_GEOGFROMTEXTarrow-up-right Note: For further details on this translation, please consult this page.

ST_POINTarrow-up-right Note: For further details on this translation, please consult this page.

JSON Functions

BigQuery
Snowflake

JSON_EXTRACT_PATH_TEXTarrow-up-right

Notes: SnowConvert automatically translates BigQuery JSON paths to their Snowflake equivalents.

PUBLIC.LAX_INT64_UDF Notes: SnowConvert generates a UDF to obtain an equivalent behavior.

PUBLIC.LAX_BOOL_UDF Notes: SnowConvert generates a UDF to obtain an equivalent behavior.

Mathematical Functions

Numbering Functions

String Functions

BigQuery
Snowflake

TRY_BASE64_DECODE_BINARYarrow-up-right Notes: BigQuery defaults to BASE64 for binary data output, but Snowflake uses HEX. In Snowflake, you can use the BASE64_ENCODEarrow-up-right function or set BINARY_OUTPUT_FORMATarrow-up-right to 'BASE64' to view binary data in BASE64.

TRY_HEX_DECODE_BINARYarrow-up-right Notes: BigQuery defaults to BASE64 for binary data output, but Snowflake uses HEX. In Snowflake, you can use the BASE64_ENCODEarrow-up-right function or set BINARY_OUTPUT_FORMATarrow-up-right to 'BASE64' to view binary data in BASE64.

SUBSTRarrow-up-right(string, position) SUBSTRINGarrow-up-right(string, position) SUBSTRarrow-up-right(sttring, position, length) SUBSTRINGarrow-up-right(sttring, position, length)

SUBSTRarrow-up-right(string, IFF(position < -LENGTH(string), 1, position)) SUBSTRINGarrow-up-right(string, IFF(position < -LENGTH(string), 1, position)) SUBSTRarrow-up-right(sttring, IFF(position < -LENGTH(string), 1, position), length) SUBSTRINGarrow-up-right(sttring, IFF(position < -LENGTH(string), 1, position), length)

Timestamp Functions

Last updated