You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/06/10 21:15:50 UTC

[GitHub] [druid] josephglanville commented on a change in pull request #10505: Avro union support

josephglanville commented on a change in pull request #10505:
URL: https://github.com/apache/druid/pull/10505#discussion_r649537774



##########
File path: docs/development/extensions-core/avro.md
##########
@@ -39,13 +39,24 @@ Make sure to [include](../../development/extensions.md#loading-extensions) `drui
 
 Druid supports most Avro types natively, there are however some exceptions which are detailed here.
 
-`union` types which aren't of the form `[null, otherType]` aren't supported at this time.
+#### Unions
+Druid has two modes for supporting `union` types. The original legacy mode can only support unions of the form `[null, otherType]`.
+The newer mode can be enabled by setting `extractUnions` on the Avro parser in which case unions will be expanded according to the following rules:

Review comment:
       No problem, I think you are right and I will make these changes next week.




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org