Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
Take this query for example:
0: jdbc:drill:drillbit=localhost> select * from t; +----------------+ | a | +----------------+ | {"b":1,"c":1} | +----------------+
if I instead run:
0: jdbc:drill:drillbit=localhost> select a from t where t.a.b = 1;
+----------------+
| a |
+----------------+
| {"b":1} |
+----------------+
Only a.b was returned, but the select specified a. In this case, it should have returned all of the elements of a, not just the one specified in the filter.
This is because the logic in FieldSelection does not correctly handle the case where a selected column is a child of another selected column. In such a case, the record reader should ignore the child column, and just return the full selected parent column.
Attachments
Issue Links
- is related to
-
DRILL-3550 Incorrect results reading complex data with schema change
- Closed
-
DRILL-3551 CTAS from complex Json source with schema change is not written (and hence not read back ) correctly
- Closed
- links to