Loading JSON Data from Cloud Data Storage¶
Note
Before using this method, be sure to read Overview of SQL-Based Data Loading.
You can load JSON data using the following loading method: Loading JSON Data from External Tables (SQL).
The cloud object stores that are currently supported are AWS S3, Azure Blob Storage, and Google Cloud.
To use the Actian SQL CLI for issuing SQL commands, see Actian SQL CLI.
External tables use Apache Spark underneath to reference and load external data into the Actian warehouse. This in turn has been wrapped in a native Actian Data Platform SQL command to aid ease of use.
Loading JSON Data from Google Cloud Storage¶
Shown below is an example of how to load JSON data stored on Google Cloud Storage using external tables.
Example: JSON file
Example: Loading JSON Data from Google Cloud Storage
Loading JSON Data from Azure Blob Storage¶
Shown below is an example of how to load JSON data stored on Azure Blob storage using external tables.
Example: JSON file
Example: Loading JSON data from Azure Blob Storage
Notes:
-
Before doing the CTAS (Create Table As Select) or load operation, ensure you can do a SELECT * FROM that external table.
If this does not work, narrow down the offending column or columns in incremental steps by doing SELECT
, FROM , and adding more columns as you go to find the offending column or columns. -
To see the available JSON options:
Loading JSON Data from AWS S3 Storage¶
Shown below is an example of how to load JSON data stored on AWS S3 storage using external tables.
Example: JSON file
Example: Loading JSON Data from AWS S3