MSC-BQ0006

Snowflake does not support differential privacy

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Medium

Description

BigQuery allows applying differential privacy over some statistical functions to introduce noise in the data, making difficult the subtraction of information about individuals when analyzing the query results.

Differential privacy is not supported in Snowflake, any use of it will be commented out and this error will be generated to inform the user about this.

Code Example

Input Code:

SELECT
  WITH DIFFERENTIAL_PRIVACY
    OPTIONS(epsilon=10, delta=.01, max_groups_contributed=2, privacy_unit_column=id)
    item,
    AVG(quantity, contribution_bounds_per_group => (0,100)) average_quantity
FROM professors
GROUP BY item;

Output Code:

SELECT
/*** MSC-ERROR - MSC-BQ0006 - SNOWFLAKE DOES NOT SUPPORT DIFFERENTIAL PRIVACY ***/
--WITH DIFFERENTIAL_PRIVACY
--    OPTIONS(epsilon=10, delta=.01, max_groups_contributed=2, privacy_unit_column=id)
   item,
   AVG(quantity
   /*** MSC-ERROR - MSC-BQ0006 - SNOWFLAKE DOES NOT SUPPORT DIFFERENTIAL PRIVACY ***/
   --, contribution_bounds_per_group => (0,100)
   ) average_quantity
FROM professors
GROUP BY item;

Recommendations

  • Analyze the results of the query with and without differential privacy, the results may differ slightly due to the absence of noise in the data.

  • If you need more support, you can email us at snowconvert-support@snowflake.com

Last updated