[teiid-issues] [JBoss JIRA] (TEIID-4165) HBase translator - time values are not translated correctly

Juraj Duráni (JIRA) issues at jboss.org
Mon Apr 25 09:39:00 EDT 2016


    [ https://issues.jboss.org/browse/TEIID-4165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196600#comment-13196600 ] 

Juraj Duráni commented on TEIID-4165:
-------------------------------------

No, driver does not support TIME without date component.
*Exception:* Error: ERROR 601 (42P00): Syntax error. java.lang.IllegalArgumentException: Invalid format: "15:00:00.0" is malformed at ":00:00.0"

I think that time were created using 1900-01-01 date component. That is the root cause probably. 
Phoenix supports time value, but requires date component (if created via SQL like UPSERT INTO..., not via PreparedStatement).

> HBase translator - time values are not translated correctly
> -----------------------------------------------------------
>
>                 Key: TEIID-4165
>                 URL: https://issues.jboss.org/browse/TEIID-4165
>             Project: Teiid
>          Issue Type: Bug
>    Affects Versions: 8.12.x
>            Reporter: Juraj Duráni
>            Assignee: Steven Hawkins
>
> HBase translator rewrites time values (e.g. \{t '15:00:00'\}) as _TIME '1970-01-01 15:00:00.0'_. But HBase stores time values with base date _1900-01-01..._.
> Updated source-specific commands returns correct result.
> {code:sql}
> SELECT g_0.intkey FROM smalla AS g_0 WHERE g_0.timevalue IN (TIME '1900-01-01 05:00:00.0', TIME '1900-01-01 15:00:00.0')
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the teiid-issues mailing list