You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Zoltán Borók-Nagy (Jira)" <ji...@apache.org> on 2021/04/28 20:17:00 UTC

[jira] [Commented] (ORC-790) TIMESTAMP_INSTANT should be primitive

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

Zoltán Borók-Nagy commented on ORC-790:
---------------------------------------

Thanks, Owen!

> TIMESTAMP_INSTANT should be primitive
> -------------------------------------
>
>                 Key: ORC-790
>                 URL: https://issues.apache.org/jira/browse/ORC-790
>             Project: ORC
>          Issue Type: Bug
>            Reporter: Zoltán Borók-Nagy
>            Assignee: Zoltán Borók-Nagy
>            Priority: Major
>             Fix For: 1.7.0, 1.6.8
>
>
> Currently TIMESTAMP_INSTANT is defined as a non-primitive type. While TIMESTAMP is a primitive type.
> [https://github.com/apache/orc/blob/cfa749854fd4fd78c763762f3515f33b9a206072/java/core/src/java/org/apache/orc/TypeDescription.java#L119]
> {noformat}
> TIMESTAMP_INSTANT("timestamp with local time zone", false);
> Category(String name, boolean isPrimitive) {
>   this.name = name;
>   this.isPrimitive = isPrimitive;
> }
> {noformat}
> This can cause problems in code that branches based on type.getCategory().isPrimitive()



--
This message was sent by Atlassian Jira
(v8.3.4#803005)