Hi All, I am trying to read data from avro file to...
# troubleshooting
a
Hi All, I am trying to read data from avro file to Pinot table using Batch Ingestion. I am facing error for STRING datatype . For now, I am providing null for the STRING field in avro file input and it is giving me below error: java.lang.RuntimeException: Caught exception while extracting data type from field:abcd Caused by: java.lang.UnsupportedOperationException: Unsupported Avro type: NULL In schema I have provided below config for the field : { "name": "abcd", "dataType": "STRING", "defaultNullValue": "none" }, I even tried without "defaultNullValue", for both am getting the same error mentioned above. I am passing value of field "abcd" as null in AVRO input file Can anyone help me with the same?
1
m
Looking at the code, it seems that you defined the type of data in AVRO as NULL instead of STRING
a
The datatype which we have defined is STRING only but the value which we are sending through our input avro file is null for now for the field with STRING datatype
m
Paste your avro schema
a
it worked provided a default string value instead of passing null