Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0
-
None
Description
Drill query fails when using flatten when some records contain an empty array
SELECT COUNT(*) FROM (SELECT FLATTEN(t.a.b.c) AS c FROM dfs.`flat.json` t) flat WHERE flat.c.d.e = 'f' limit 1;
Succeeds on
{ "a": { "b": { "c": [ { "d":
} ] } } }
Fails on
{ "a": { "b":
} }
Error
Error: SYSTEM ERROR: ClassCastException: Cannot cast org.apache.drill.exec.vector.NullableIntVector to org.apache.drill.exec.vector.complex.RepeatedValueVector
Is it possible to ignore the empty arrays, or do they need to be populated with dummy data?
Attachments
Issue Links
- is duplicated by
-
DRILL-4578 "children" missing from results of full scan over JSON data
- Closed
- relates to
-
DRILL-5396 A flatten query on top of 2 files with one record each causes oversize allocation error randomly
- Open
-
DRILL-2217 Trying to flatten an empty list should return an empty result
- Closed
- links to