Scalar functions

This document provides links to the system-defined scalar functions, grouped by category.

A scalar function is a function that returns one value per invocation; in most cases, you can think of this as returning one value per row. This contrasts with Aggregate functions, which return one value per group of rows.

CategoryDescription
Bitwise expression functionsPerform bitwise operations on expressions.
Conditional expression functionsManipulate conditional expressions.
Context functionsProvide contextual information about the current environment, session, and object.
Conversion functionsConvert expressions from one data type to another data type.
Data generation functionsGenerate random or sequential values.
Date & time functionsManipulate dates, times, and timestamps.
Differential privacy functionsWork with data protected by differential privacy.
Encryption functionsPerform encryption and decryption on VARCHAR or BINARY values.
File functionsAccess files staged in cloud storage.
Geospatial functionsWork with geospatial data.
Hash functionsHash values to signed 64-bit integers using a deterministic algorithm.
Metadata functionsRetrieve data or metadata about database objects (e.g. tables) or files (e.g. staged files).
Model monitor functionsRetrieve metrics from machine learning model monitors.
Notification functionsProduce JSON-formatted strings that you pass to SYSTEM$SEND_SNOWFLAKE_NOTIFICATION when sending a notification to a queue or email address.
Numeric functionsPerform rounding, truncation, exponent, root, logarithmic, and trigonometric operations on numeric values.
Semi-structured and structured data functionsWork with semi-structured data (JSON, Avro, etc.).
String & binary functionsManipulate and transform string input.
String functions (regular expressions)Subset of strings functions for performing operations on items that match a regular expression.