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

Sean Hsuan-Yi Chu commented on DRILL-3719:
------------------------------------------

https://reviews.apache.org/r/37896/

> Adding negative sign in front of EXTRACT triggers Assertion Error
> -----------------------------------------------------------------
>
>                 Key: DRILL-3719
>                 URL: https://issues.apache.org/jira/browse/DRILL-3719
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Sean Hsuan-Yi Chu
>            Assignee: Sean Hsuan-Yi Chu
>             Fix For: 1.2.0
>
>
> A simple repo:
> When we typing
> {code}
> select -EXTRACT(DAY FROM birth_date) from cp.`employee.json`;
> {code}
> we probably mean 
> {code}
> select -1 * EXTRACT(DAY FROM birth_date) from cp.`employee.json`;
> {code}
> However, the first one will trigger assertion error:
> Error: SYSTEM ERROR: AssertionError: todo: implement syntax 
> PREFIX(-(EXTRACT(FLAG(DAY), $0)))



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

Reply via email to