You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2018/11/27 00:57:00 UTC
[jira] [Created] (IMPALA-7897) LiteralExpr incorrectly "handles"
DATE, DATETIME, and TIMESTAMP
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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org