Paul Rogers created IMPALA-7897:
-----------------------------------

             Summary: LiteralExpr incorrectly "handles" DATE, DATETIME, and 
TIMESTAMP
                 Key: IMPALA-7897
                 URL: https://issues.apache.org/jira/browse/IMPALA-7897
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
    Affects Versions: Impala 3.0
            Reporter: Paul Rogers
            Assignee: Paul Rogers


The {{LiteralExpr.create()}} method “handles” the {{DATE}}, {{DATETIME}}, and 
{{TIMESTAMP}} class by returning a null value, with no exception. Change this 
to throw an exception so that calling code does not have to track down an NPE.

That is, if literals of these types are not supported, then make this clear by 
throwing an {{UnsupportedOperationException}} or the like.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to