Snowflake supports multiple file types via creation FILE_FORMAT (avro, json, csv etc).
Now I have tested SELECTing from snowflake stage (s3) both:
- *.avro files (generated from nifi processor batching 10k source oracle table).
- *.json files (json per line).
And when Select $1 from @myStg, snowflake expands as many rows as records on avro or json files (cool), but.. the $1 variant is both json format and now i wonder if whatever snowflake file_format we use do records always arrive as json on the variant $1 ? I haven't tested csv or others snowflake file_formats.
Or i wonder if i get json from the avros (from oracle table) because maybe NiFi processor creates avro files (with internally uses json format). Maybe im making some confusion here.. i know avro files contain both:
- avro schema - language similar to json key/value.
- compressed data (binary).
Thanks, Emanuel O.