josephglanville opened a new issue #10493:
URL: https://github.com/apache/druid/issues/10493


   ### Description
   
   Avro unions should be supported for ingestion into Druid, currently only the 
specific form `[null, someOtherType]` is supported and is treated as a form of 
nullable.
   
   I propose having Druid explode unions at ingestion time via the flattener 
interface into nested paths accessible by the union member type name. i.e If I 
have the following Avro schema:
   ```
   {
     "name" : "union",
     "type" : [ "null", "string", "boolean", "float", "int" ]
   }
   ```
   Then I should be able to access each of the member types as 
`union.typeName`, i.e: `union.string`, `union.boolean`, `union.float` and 
`union.int` in this case.
   
   ### Motivation
   
   This will expand Druid's Avro support to cover the full spec as of right now 
there is valid Avro that can't be meaningfully ingested into Druid without 
pre-processing to remove unions.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to