GitHub user StevenMPhillips opened a pull request:
https://github.com/apache/drill/pull/207
Drill-3232: Handle promoting writers and vectors from primitive to union
type
The PromotableFieldWriter delegates all FieldWriter API calls to an inner
FieldWriter. This inner field writer can start as a specific type, and this
class will promote the writer to a UnionWriter if a call is made that the
specifically typed writer cannot handle. A new UnionVector is created, wrapping
the original vector, and replaces the original vector in the parent vector,
which can be either an AbstractMapVector or a ListVector.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/StevenMPhillips/drill drill-3232
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/207.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #207
----
commit 81a4e714a868634592bb449eb490b7a30ac990fe
Author: Steven Phillips <[email protected]>
Date: 2015-10-01T10:26:34Z
DRILL-3229: Implement Union type vector
commit 53aaacaebff923094dee4e4d3c5fc52f112c12d4
Author: Steven Phillips <[email protected]>
Date: 2015-10-05T04:32:34Z
DRILL-3233: Expression handling for Union types
commit 3807ff05f8232586a83b4895ea5216ebdf4c60d1
Author: Steven Phillips <[email protected]>
Date: 2015-10-09T19:59:37Z
Drill-3232: Promotable writer
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---