GitHub user Serhii-Harnyk opened a pull request:

    https://github.com/apache/drill/pull/713

    DRILL-3562: Query fails when using flatten on JSON data where some do…

    …cuments have an empty array
    1. Added set for ListWriters tracking to keep empty arrays for further 
initializing in ensureAtLeastOneField method. 
    2. Added check to avoid schema generating with field type "Late" and mode 
"Optional", replaced it to "Int" type in FlattenRecordBatch class.
    3. Added unit tests to cover cases querying Json with empty arrays with 
flatten.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Serhii-Harnyk/drill DRILL-3562

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/713.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 #713
    
----
commit 815de0cc6f16b247b3a655007241a074e38394c7
Author: Serhii-Harnyk <serhii.har...@gmail.com>
Date:   2016-12-20T16:55:41Z

    DRILL-3562: Query fails when using flatten on JSON data where some 
documents have an empty array

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to