I have ioT data in azure datalake structure as {date}/{month}/{day}/abbs. Json Each file has multiple records separated by new line .. How to read this data using usql and load into table and query.
When I load it in usql table using ////.json will that load data into same table when new files added to files.
I have followed qzure docs but did not find any answer to line separated json file.
In this example we will create a table to store events:
Then when it comes to extracting the json and inserting it into the database:
You first have to extract the lines using a simple text extractor, then you can parse it. For example, give a file with json objects separated with new lines
then this script will extract the events:
Later on you can read from the table like this:
Now, since it is an
INSERT IMTO
data will be appended to the table.Resources:
GitHub Examples
More GitHub Examples