Steve Carlin created IMPALA-14946:
-------------------------------------

             Summary: Catch "trunc" error within Calcite planner
                 Key: IMPALA-14946
                 URL: https://issues.apache.org/jira/browse/IMPALA-14946
             Project: IMPALA
          Issue Type: Sub-task
            Reporter: Steve Carlin


Currently, a java exception is thrown on the following query where the second 
parameter is incorrect:

select dayofyear(trunc('2014-11-11', string_col)) from functional.alltypestiny 
limit 1;

The original planner catches this and throws an Invalid Truncate Unit message. 
Calcite planner should do the same.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to