[ 
https://issues.apache.org/jira/browse/DRILL-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609168#comment-14609168
 ] 

Rahul Challapalli commented on DRILL-2217:
------------------------------------------

The below query seems to be reporting an error. I expected an error message 
indicating that flatten cannot be applied to scalar's
{code}
select flatten(empty[1][0]) from `data1.json`;
Error: SYSTEM ERROR: UnsupportedOperationException: Unable to get value vector 
class for minor type [LATE] and mode [OPTIONAL]

Fragment 0:0

[Error Id: d5271ee0-e841-4c68-9ed3-be2c2050b26b on qa-node190.qa.lab:31010] 
(state=,code=0)
{code}

I can raise a different JIRA, if this is completely un-related

> Trying to flatten an empty list should return an empty result
> -------------------------------------------------------------
>
>                 Key: DRILL-2217
>                 URL: https://issues.apache.org/jira/browse/DRILL-2217
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators
>            Reporter: Rahul Challapalli
>            Assignee: Jason Altekruse
>             Fix For: 1.2.0
>
>         Attachments: error.log
>
>
> git.commit.id.abbrev=3d863b5
> Data Set :
> {code}
> {"empty":[[],[[]]]}
> {code}
> Query :
> {code}
> select flatten(empty) from `data1.json`;
> Query failed: RemoteRpcException: Failure while running fragment.[ 
> 1b3123d9-92bc-45d5-bef8-b5f1be9def07 on qa-node191.qa.lab:31010 ]
> [ 1b3123d9-92bc-45d5-bef8-b5f1be9def07 on qa-node191.qa.lab:31010 ]
> {code}
> I also attached the error from the logs



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to