You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/07/19 05:48:00 UTC

[jira] [Commented] (NIFI-6442) ExecuteSQL/ExecuteSQLRecord convert to Avro date type incorrectly when set 'Use Avro Logical Types' to true

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

ASF subversion and git services commented on NIFI-6442:
-------------------------------------------------------

Commit 3bfef3356e158d8691008e3675bb7a5cc65064fb in nifi's branch refs/heads/master from archon
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3bfef33 ]

NIFI-6442: ExecuteSQL/ExecuteSQLRecord convert to Avro date type incorrectly when set 'Use Avro Logical Types' to true

This closes #3584.

Signed-off-by: Koji Kawamura <ij...@apache.org>


> ExecuteSQL/ExecuteSQLRecord convert to Avro date type incorrectly when set 'Use Avro Logical Types' to true
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-6442
>                 URL: https://issues.apache.org/jira/browse/NIFI-6442
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: archon gum
>            Assignee: archon gum
>            Priority: Blocker
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
>  
> '2019-01-01' will consider to be '2019-01-01 00:00:00' which 1546300800000L milliseconds in UTC.
> But in other time zone such as '+08:00', do "select date('2019-01-01')" and result.getObject() or result.getDate() will return java.sql.Date object but java.sql.Date.getTime() return 1546272000000L instead of 1546300800000L which it's 8 hours earlier.
> Currently, ExecuteSQL return "(java.sql.Date.getTime() - 0) / 86400000" as epoch days



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)