Query redaction for Snowflake
Reference for Redact SQL Text on Snowflake crawler and miner workflows: what Atlan redacts, what it preserves, and limitations to plan for.
By default, Atlan stores the SQL text it extracts from Snowflake exactly as written at source. That text can contain literal values from your business data, such as email addresses in a WHERE clause or account numbers in a view definition.
Query redaction replaces those literal values with placeholders before Atlan stores them. Redaction runs in memory while the workflow extracts data, so the original values aren't written to Atlan's storage or sent outside your environment. Query structure, table references, and column references are preserved, so lineage is unaffected.
Redaction is off by default. You opt in per workflow using the Redact SQL Text option.
Enable redaction
Redact SQL Text is a separate option on each workflow, so you can enable it for the crawler, the miner, or both.
| Workflow | Where to find it | Supported connection types |
|---|---|---|
| Snowflake crawler | Configure crawler screen | Direct connections only, using either Information Schema or Account Usage |
| Snowflake miner | Configure miner screen | Both direct connections and Self Deployed Runtime |
Changing this option applies to future runs only. See Limitations.
What Atlan redacts
Redaction applies to the columns that carry SQL text for each workflow.
| Workflow | Redacted content |
|---|---|
| Crawler | Replaces string and numeric literals in extracted SQL definitions with placeholders. |
| Miner | Query history text from SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY |
Within that text, Atlan replaces:
- String literals with
'<REDACTED:STRING>'. - Numeric literals with
1. Atlan substitutes a valid number rather than a text placeholder so that the redacted SQL remains parseable.
Atlan also removes comments from redacted SQL and reformats the statement, so stored text won't match the original layout.
Values Atlan preserves
Some literals are safe to keep and can break the SQL if replaced, so redaction preserves them:
- Date and time literals, such as
'2026-01-01'or'2026-01-01 14:30:00'. - Month and weekday names, and date part keywords such as
MONTHorQUARTER. - Currency codes, such as
'USD'. - Boolean words:
TRUE,FALSE,YES, andNO.
Everything else is treated as potentially sensitive and redacted.
Before and after
A query extracted by the miner:
-- monthly EMEA revenue check
select order_id, customer_email
from analytics.public.orders
where region = 'EMEA' and order_total > 500.75
and created_at >= '2026-01-01' and currency = 'USD';
The same query as Atlan stores it with Redact SQL Text enabled:
/* redacted: true, hash: 1234567890, redacted_hash: 9876543210 */
SELECT
order_id,
customer_email
FROM analytics.public.orders
WHERE
region = '<REDACTED:STRING>'
AND order_total > 1
AND created_at >= '2026-01-01'
AND currency = 'USD'
Note the following:
'EMEA'was replaced, while the date and the currency code were preserved as allowlisted values.500.75became1. Redaction indicates that a number was present, not what it was.- The comment was removed and the statement was reformatted.
- Atlan adds a header comment recording that the text was redacted, along with fingerprints of the original and redacted statements. The fingerprint values differ for every statement.
analytics.public.orders,order_id, andcustomer_emailare unchanged, which is why lineage still resolves.
What redaction preserves
Redaction only changes literal values. Because everything Atlan uses to build relationships stays intact, enabling redaction doesn't change:
- Table-level and column-level lineage.
- Usage and popularity metrics.
- Asset names, hierarchy, or any other extracted metadata.
Limitations
Review these before you rely on redaction for a compliance requirement.
Redaction isn't retroactive. It applies only to SQL that Atlan extracts after you enable the option. SQL text already stored in Atlan from earlier runs stays unredacted. To remove it, work with Atlan support.
SQL that Atlan can't parse is stored unredacted. Redaction works by parsing each statement. When parsing fails, Atlan stores the original statement instead of dropping it. Dynamic SQL, statements wrapped in EXECUTE IMMEDIATE, and procedure bodies written in other languages are the most common cases. If your compliance requirement is that no unredacted SQL can be stored, treat this as a gap and raise it with Atlan support.
Redaction increases workflow runtime. Expect crawler and miner runs to take longer, and account for this if a workflow already runs close to its schedule interval.
Enabling redaction rewrites stored SQL. Because the stored text changes for every asset, the first run after you enable the option updates SQL text across the connection.
See also
- Crawl Snowflake: configure and run the Snowflake crawler.
- Mine Snowflake: configure and run the Snowflake miner.
- What does Atlan crawl from Snowflake?: assets and metadata Atlan extracts.