JSON Data Type
Description
Oracle Database supports JSON natively with relational database features, including transactions, indexing, declarative querying, and views. Unlike relational data, JSON data can be stored in the database, indexed, and queried without any need for a schema that defines the data. (Oracle SQL Language Reference JSON Data Type).
The JSON data types are transformed to VARIANT in order to emulate the Oracle behavior.
Sample Source Patterns
JSON Data Type as a column in Create Table
Oracle
Snowflake
JSON data insertions are not being correctly handled. Check the Recommendations section for workarounds.
Known Issues
1. JSON data insertions
JSON data insertions are not being correctly handled by SnowConvert.
2. JSON objects manipulation
The usages of JSON objects (columns, variables, or parameters) are not correctly converted by SnowConvert. Check the Recommendations section for workarounds
Recommendations
1. JSON Data Type translation workaround
JSON datatype is translated to VARIANT, so the information can be formatted using the Snowflake PARSE_JSON function. This approach will allow you to store, query, and operate the JSON data in Snowflake using similar syntax as Oracle.
Oracle
Snowflake
You must use SELECT as the INSERT INTO argument instead of the VALUES clause to use the PARSE_JSON function.
Use the ':' instead of the '.' operator to access the JSON object properties. It allows several levels of nesting in both engines.
Related EWIs
SSC-EWI-0073: Pending Functional Equivalence Review
Last updated