Jason Altekruse created DRILL-3831:
--------------------------------------
Summary: Allow null values in lists
Key: DRILL-3831
URL: https://issues.apache.org/jira/browse/DRILL-3831
Project: Apache Drill
Issue Type: Improvement
Components: Execution - Data Types
Reporter: Jason Altekruse
Assignee: Jason Altekruse
Fix For: 1.3.0
Drill currently fails to read a json file where a list has a value of null in
it. We have a workaround with all_text_mode for this case, but we need to
enhance Drill to support this concept in the core ValueVector data structure
used to represent records.
As part of this change, I am considering removing the concept of a list that
requires all of its members to be non-null, effectively the only type of list
we have today. The data that can be read today would simply be read into a list
where the members could be nullable, but they all happen to be non-null. This
would simplify the code to prevent the need to cover the null and non-null
cases explicitly.
Initially this could pose a risk with a minor performance hit, but overall our
approach with complex data is not been heavily performance tested. Keeping the
code simple for now will at least allow for more thorough testing of the
smaller number of cases, and hopefully make it easier to reason about and
improve as we evaluate the performance of Drill with complex data more
thoroughly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)