The Kipi Data Utils Dynamic JSON Flattener application simplifies parsing and flattening nested JSON data in Snowflake, handling schema drift while enabling version control and easy rollback capabilities.
Kipi Data Utils Dynamic JSON Flattener Application parses JSON data from the user's raw table and creates a table with user-selected columns. It stores a SELECT statement in the master table, facilitating flattening and scheduling as needed, and allows for easy rollback to earlier versions.
Parsing JSON data typically demands data analysis and manual effort to create a structured table. This process becomes even more challenging with constant schema drift. However, the application efficiently manages schema drift and creates structured tables, reducing data engineer effort and time consumption.
Before using the app, ensure:
Certain privileges must be granted for smooth operation:
Grant the app read access to source database, schema, and table to access JSON data. Grant write access on the target schema and table to allow flattened table creation.
Under the security section, select the database, schema, and source table.
After initiating the flattening process, analyze the JSON structure including nested levels and data types. You can edit data types as needed.
Select relevant or all fields for the table and preview it before creation.
Select the source database and target schema, then provide the target table name to create the flattened table.
The application creates a master table to store the select query, aiding in flattening JSON data. It captures every change and maintains versions, facilitating easy rollback when needed.
For incremental loads, attach an 'insert into' and Task to the select query in the master table, which runs daily or as needed to process data.
The Kipi Data Utils Dynamic JSON Flattener app enables efficient flattening of nested JSON data, schema change handling, and readable format previewing. It empowers data processing capabilities and makes working with JSON data in Snowflake seamless.