You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/10 10:15:58 UTC

[jira] [Commented] (DRILL-4938) need better error message

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

ASF GitHub Bot commented on DRILL-4938:
---------------------------------------

GitHub user Serhii-Harnyk opened a pull request:

    https://github.com/apache/drill/pull/689

    DRILL-4938: Need better error message

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Serhii-Harnyk/drill DRILL-4938

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/689.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #689
    
----
commit 89b671ebc690c19f92f5325de7df1934dd4544e5
Author: Serhii-Harnyk <se...@gmail.com>
Date:   2016-11-18T16:02:04Z

    DRILL-4938: Need better error message

----


> need better error message
> -------------------------
>
>                 Key: DRILL-4938
>                 URL: https://issues.apache.org/jira/browse/DRILL-4938
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>    Affects Versions: 1.9.0
>            Reporter: Khurram Faraaz
>            Assignee: Serhii Harnyk
>            Priority: Minor
>
> We need a better error message instead of DrillRuntimeException
> Drill 1.9.0 git commit ID : 4edabe7a
> {noformat}
> 0: jdbc:drill:schema=dfs.tmp> select (res1 = 2016/09/22) res2
> . . . . . . . . . . . . . . > from
> . . . . . . . . . . . . . . > (
> . . . . . . . . . . . . . . >     select (case when (false) then null else cast('2016/09/22' as date) end) res1
> . . . . . . . . . . . . . . >     from (values(1)) foo
> . . . . . . . . . . . . . . > ) foobar;
> Error: SYSTEM ERROR: DrillRuntimeException: Failure while materializing expression in constant expression evaluator [CASE(false, =(null, /(/(2016, 9), 22)), =(CAST('2016/09/22'):DATE NOT NULL, /(/(2016, 9), 22)))].  Errors:
> Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
> Error in expression at index -1.  Error: Missing function implementation: [castTIMESTAMP(INT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--.
> {noformat}



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