[
https://issues.apache.org/jira/browse/PHOENIX-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497313#comment-14497313
]
Abhishek Sreenivasa commented on PHOENIX-1707:
----------------------------------------------
Ignore the issue about incorrect sqlType returned for UNSIGNED_DATE. It's
expected and documented in PDataType#getResultSetSqlType:
/**
* By default returns sqlType for the PDataType,
* however it allows unknown types (our unsigned types)
* to return the regular corresponding sqlType so
* that tools like SQuirrel correctly display values
* of this type.
*
* @return integer representing the SQL type for display
* of a result set of this type
*/
> Compare (where) DATE<> UNSIGNED_DATE raise NPE
> ----------------------------------------------
>
> Key: PHOENIX-1707
> URL: https://issues.apache.org/jira/browse/PHOENIX-1707
> Project: Phoenix
> Issue Type: Bug
> Environment: Phoenix 4.3, hbase 0.98.6
> Reporter: Lavrenty Eskin
> Assignee: Abhishek Sreenivasa
> Labels: Newbie
>
> select
> FLOOR(REGDATE, 'DAY'), <<== UNSIGNED_DATE
> TO_DATE('2015-03-06', 'yyyy-MM-dd') <<== DATE
> from
> "ALARMSHISTORY" as "ALARMSHISTORY"
> where
> FLOOR(REGDATE, 'DAY') = TO_DATE('2015-03-06', 'yyyy-MM-dd'); <<== raise
> java.lang.NullPointerException
> (!) There are no NULLs in REGDATE
> Ways to resolve:
> a) Implement TO_UNSIGNED_DATE function
> b) Implement correct compare function DATE<> UNSIGNED_DATE
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)