You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a requirement where I need to extract JSON files from Avro by using U-SQL. Avro files contain a collection of JSON and need to extract individual JSON from Avro. Here I have written code. I used JsonOuptter() for writing jsons.
OUTPUT @source
TO "C://schemaType.json"
USING new JsonOutputter();
Your column source is of type string so it outputs it as a string property. You have the following options (both involving most likely to extend the outputter:
Add an option to indicate a column to be treated as JSON instead of a string.
Keep the data in the column as a SqlMap<string,string> and then output it as a set of properties for the object.
You would have to write your own version of the outputter to add this option. Please note that these are samples that are meant to help people get started and if something is missing to contribute to it :).
I have a requirement where I need to extract JSON files from Avro by using U-SQL. Avro files contain a collection of JSON and need to extract individual JSON from Avro. Here I have written code. I used JsonOuptter() for writing jsons.
I am getting JSON as like below.
I am expecting jSON as like below.
Thanks for your help and support.
The text was updated successfully, but these errors were encountered: