# How do I preserve NULLs, empty strings, and data types in a Snowflake export?

Exam: COF-C03 — SnowPro Core Certification Exam
Knowledge domain: Data Loading, Unloading, and Connectivity
Updated: 2026-11-25T08:00:25.127941+00:00
HTML: https://learningpathx.com/faq/COF-C03/cofc03-snowflake-export-csv-parquet-fidelity.html

## Also asked as

- What CSV and Parquet settings protect data fidelity in a Snowflake unload?
- How do I keep missing values, empty text, timestamps, and numbers distinct after a Snowflake export?

Choose an output format and test it with the actual reader. For CSV, give SQL NULL a representation the receiver can distinguish from an empty string. For Parquet, check the physical column types and explicitly handle Snowflake values that do not map directly.

* **CSV**. Use `FIELD_OPTIONALLY_ENCLOSED_BY` to quote string fields and a `NULL_IF` token that cannot collide with valid data. Agree on whether empty strings appear as quoted empty text, how the reader applies the null convention, delimiter, headers, UTF-8 handling, date and timestamp rendering, and compression. Keep the compression and filename extension consistent. If emitting unquoted empty fields with `EMPTY_FIELD_AS_NULL = FALSE`, keep an explicit distinct null token and apply the corresponding rules on reload.
* **Parquet**. It preserves a typed columnar schema, but Snowflake's unload maps fixed-point numbers to DECIMAL and can serialize VARIANT values as JSON strings. `COPY INTO <location>` documents restrictions on unloading `TIMESTAMP_TZ` or `TIMESTAMP_LTZ` directly to Parquet. Convert them explicitly to an agreed UTC timestamp or offset-bearing text and verify the consumer's interpretation. Check the actual timestamp precision and decimal range after the round trip.

Test NULL and empty text separately, including a literal that resembles the null token, embedded delimiters, quotes, newlines, Unicode, large numbers, and timestamps at the precision and time zone your workload uses.

[Supported unload formats and options](https://docs.snowflake.com/en/sql-reference/sql/copy-into-location) · [CSV null handling and Parquet type conversion](https://docs.snowflake.com/en/user-guide/data-unload-considerations) · [Snowflake date and time types](https://docs.snowflake.com/en/sql-reference/data-types-datetime)

Source: [Unloading Data and Building Reliable Export Workflows](https://learningpathx.com/news/unloading-data-and-building-reliable-export-workflows.html)
