Unify and manage your data

Create a JSON file format in Snowflake

Learn how to create a JSON file format in Snowflake.

Before you create a JSON file format, you must have created a Snowflake schema. For more information, see topic Create a Snowflake schema.

When you load data files into a table, you must describe the file format and specify how Snowflake is to interpret and process the data in that file. Reltio configurations are in JSON file format, so create this file format in Snowflake.

To create the JSON file format in your Snowflake environment:
  1. In the Snowflake application worksheet area, create a new SQL worksheet.
  2. In the SQL worksheet:
    1. From the drop-down menu at the top of the page, select the database you previously created in Create a Snowflake database.
    2. From the drop-down menu at the top of the page, select the schema you previously created.in Create a Snowflake schema.
    3. Run this command:
      CREATE file format <file_format_name>
      type = 'JSON'
      COMPRESSION = GZIP
      STRIP_OUTER_ARRAY = TRUE;
      where:
      • <file_format_name>: Is the name of the file format, for example, zippedJson.

        Tip: Take note of this value. You'll need it when you Create a Snowpipe in Snowflake (Azure).
      • type: Is JSON.

      • COMPRESSION: Is GZIP.

      • STRIP_OUTER-ARRAY: Is TRUE.

  3. In the SQL worksheet, view the Successfully created notification message.
For general information, see Create file format objects in the Snowflake documentation.