Github user amansinha100 commented on the issue: https://github.com/apache/drill/pull/1204 @oleg-zinovev good catch with the empty array input for Flatten. I had reviewed the original JIRA DRILL-6099 but did not consider the empty arrays. It would be good for @gparai to also take a look at this fix.
---