Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Later
-
None
-
None
Description
git.commit.id.abbrev=3d863b5
The below query returns all nulls currently :
0: jdbc:drill:schema=dfs_eea> select * from `data.json` where 2 in (select flatten(lst_lst[1]) from `data.json`) order by flatten(lst_lst[1]); +------------+ | * | +------------+ | null | | null | | null | | null | | null | | null | | null | | null | | null | | null | +------------+
There seems to be another issue here since the no of records returned also does not look right. I will raise a separate JIRA for that.
The issue goes away, if we do an order by without the flatten. Below query works
select * from `data.json` where 2 in (select flatten(lst_lst[1]) from `data.json`) order by uid;
Attached the data files
Attachments
Issue Links
- is related to
-
DRILL-2232 Flatten functionality not well defined when we use flatten in an order by without projecting it
-
- Resolved
-
-
DRILL-2012 Flatten fails when we filter by a non-projected column
-
- Closed
-
-
DRILL-2180 Star is not expanded when being used with flatten
-
- Closed
-
- relates to
-
DRILL-2181 Throw proper error message when flatten is used within an 'order by' or 'group by'
-
- Closed
-