sajjad-moradi opened a new pull request, #11698:
URL: https://github.com/apache/pinot/pull/11698

   Upgraded `Avro` version from `1.9.2` to `1.10.2`. In our installation, the 
newer version gets pulled transitively. Although major version is the same, and 
there's no interface changes, but the way OSS Pinot handles Avro fields of type 
map doesn't work with 1.10.2. In Pinot, for map fields, `<fieldName__KEYS>` and 
`<fieldName__VALUES>` are dynamically added to the avro record. Since they are 
not defined in the schema, in avro 1.10.2, a runtime exception gets thrown when 
record.get(fieldName) is called. To fix the issue, I simply added a check to 
see if the schema has that field, and if not, we set value as null.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to