Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Consider the following json file:
{"rownum":1, "arrayval": [
{"val1":"a1"},
{"val1":"a2"} ]}
{"rownum":2, "arrayval": [
,
{"val1": "b2"}]}
If we have the following query, we will fail with a class cast exception.
select rownum, table.arrayval.val1 from dfs.`input.json` as table;
We should return an array of type 'val1' like the following
[a1, a2]
[b1, b2]