From the course: End-to-End Real-World Data Engineering Project with Snowflake
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Create the JSON file format in Snowflake to load JSON file data - Snowflake Tutorial
From the course: End-to-End Real-World Data Engineering Project with Snowflake
Create the JSON file format in Snowflake to load JSON file data
- To load our product data, we need to create a different file format because the customer data was of the CSV type, and product is of a JSON type. So in this case, I cannot reuse the CSV file format. So to create another file format, let's create one more worksheet, and give the name as Product_load. Product_load. Now, we need to select the database that is PACIFICRETAIL, and schema as the BRONZE. To create the file format, we again going to use the command. And the command is pretty simple, create or replace the file format and give the name of the file format. I have given it json_file_format only. Importantly, I have set it that type is equal to JSON. And let's just execute this. And done! Our JSON_FILE_FORMAT got created. Now, the file format creation got done, but you wanted to see how it is working. So let's just quickly do a one quick check, where we have said that select dollar one, that is the first column from our adls/Product result, our JSON data is available into the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Create the database in Snowflake and the Bronze layer schema4m 8s
-
(Locked)
Create the CSV file format in Snowflake to load CSV file data3m 6s
-
(Locked)
Create a Snowflake task to load customer data into the raw table4m 45s
-
(Locked)
Create the JSON file format in Snowflake to load JSON file data2m 39s
-
(Locked)
Create a Snowflake task to load product data into the raw table4m 45s
-
(Locked)
Create the Parquet file format in Snowflake to load Parquet file data2m 50s
-
(Locked)
Create a Snowflake task to load order data into the raw table3m 17s
-
(Locked)
-
-
-