1. Snowflake Documentation on CREATE FILE FORMAT: This document details the STRIPNULLVALUE option for JSON file formats.
Source: Snowflake Documentation
Reference: CREATE FILE FORMAT > Format-Specific Options (formatTypeOptions) > STRIPNULLVALUE
Quote: "Boolean that specifies to remove the object with a null value in a JSON object. When set to TRUE, the object with a null value is removed."
2. Snowflake Documentation on Querying Semi-structured Data: This page explains how Snowflake handles queries for paths that do not exist in a VARIANT object.
Source: Snowflake Documentation
Reference: Querying Semi-structured Data > Path Notation
Quote: "If an element is not found, a SQL NULL is returned. This is different from a VARIANT “null” value."
3. Snowflake Documentation on Data Type Conversion: This section clarifies the behavior of casting a VARIANT null to a string.
Source: Snowflake Documentation
Reference: Data Types > Semi-structured Data Types > VARIANT
Quote: "When you explicitly cast a VARIANT value to a string (e.g. ::VARCHAR), a VARIANT null becomes the string "null"." This behavior is shared by TOCHAR and TOVARCHAR.