


The next step would be to analyze the loaded raw JSON data. COPY INTO relations_json_raw from that a file format does not need to be specified because it is included in the stage definition. Now let’s copy the JSON file into relations_json_raw table. VARIANT can contain any type of data so it is suitable for loading JSON data. To load the JSON data as raw, first, create a table with a column of VARIANT type. Load JSON data as raw into temporary table CREATE OR REPLACE STAGE my_json_stage url='url of s3 bucket or azure blob with credentials'Ģ. PUT file:///home/knoldus/Desktop/family.json can also create an external stage using the AWS S3 bucket, or Microsoft Azure blob storage that contains JSON data. CREATE OR REPLACE STAGE my_json_stage file_format = (type = json) Let’s Staging JSON data file from a local file system. Staging JSON data in Snowflake is similar to staging any other files. In snowflake Staging the data means, make the data available in Snowflake stage(intermediate storage) it can be internal or external. In this blog, we will understand this approach in a step-wise manner. Snowflake has a very straight forward approach to load JSON data. If we are implementing a database solution, it is very common that we will come across a system that provides data in JSON format. Have you ever faced any use case or scenario where you’ve to load JSON data into the Snowflake? We better know JSON data is one of the common data format to store and exchange information between systems.
