Snowflake data types

Snowflake provides several functions to transform the data. This documentation describes how Snowflake transforms the data for a given Protect masking type.

  • Default masking: Snowflake does not support this masking type. Protect, however, uses the default masking type to apply protection to a wide range of data types. A default masking value is applied to each column according to the data type of the column.
  • Hashing: Uses the following Snowflake functions:
    • SHA2 (for strings)
    • HASH (for numbers)
  • Show last: Uses the following expressions:
    • substr(to_varchar(value), length(value) - n, n) (for strings)
    • mod(value, power(10,n)) (for numbers)
    • Tip In the expressions, value indicates the content and n indicates the number of characters to be shown.
  • No masking: Returns the raw content.
Note 
  • You can apply the Hashing and Show last masking types to only the following Snowflake data types: FLOAT, NUMBER, and STRING.
  • If a selected masking type cannot be applied to a certain data type—for example, when you attempt to apply the Hashing masking type to the DATE data type—the Default masking type is applied to the data type to guarantee protection.