SSC-EWI-BQ0003
Snowflake does not support differential privacy.
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,
COUNT(quantity, contribution_bounds_per_group => (0,100)) total_quantity
FROM professors
GROUP BY item;
Output Code:
SELECT
!!!RESOLVE EWI!!! /*** SSC-EWI-BQ0003 - SNOWFLAKE DOES NOT SUPPORT DIFFERENTIAL PRIVACY. ***/!!!
WITH DIFFERENTIAL_PRIVACY
OPTIONS(epsilon=10, delta=.01, max_groups_contributed=2, privacy_unit_column=id)
item,
COUNT(quantity,
!!!RESOLVE EWI!!! /*** SSC-EWI-BQ0003 - SNOWFLAKE DOES NOT SUPPORT DIFFERENTIAL PRIVACY. ***/!!! contribution_bounds_per_group => (0,100)) total_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 [email protected]
Last updated