Hello
I am trying to upload a valid JSON file into dremio but it is giving error. And I think its due to it has values in mix of array and non-array for same attribute name. As this is valid JSON I am expecting it to be uploaded seamlessly
We are getting this JSON from external system. The size of JSON files are big, so if we re-process (to change you per your suggestion) at our end it then it will be more processing and time consuming.
As this is valid file, it is unreasonable to ask external system to change it.
Do you not think that dremio should be able to handle this, as this is valid JSON file?
Currently this coercion is not supported, there is an internal schema feature for only certain sources where you can define the incoming schema using alter table
What is the right data type that should be defined? List (Array) or Struct?
@adamr JSON should be supported, can you try changing the data type to LIST? If the incoming file after that has STRUCT, you may run into the same issue, please check and let us know