You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Brian Hulette (JIRA)" <ji...@apache.org> on 2019/06/24 19:07:00 UTC
[jira] [Commented] (ARROW-5714) [JS] Inconsistent behavior in
Int64Builder with/without BigNum
[ https://issues.apache.org/jira/browse/ARROW-5714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16871698#comment-16871698 ]
Brian Hulette commented on ARROW-5714:
--------------------------------------
I'm pretty sure the issue is that we don't account for stride here: https://github.com/apache/arrow/blob/master/js/src/builder/buffer.ts#L108
> [JS] Inconsistent behavior in Int64Builder with/without BigNum
> --------------------------------------------------------------
>
> Key: ARROW-5714
> URL: https://issues.apache.org/jira/browse/ARROW-5714
> Project: Apache Arrow
> Issue Type: Bug
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: Major
> Fix For: 0.14.0
>
>
> When the Int64Builder is used in a context without BigNum, appending two numbers combines them into a single Int64:
> {code}
> > v = Arrow.Builder.new({type: new Arrow.Int64()}).append(1).append(2).finish().toVector()
> > v.get(0)
> Int32Array [ 1, 2 ]
> {code}
> Whereas the same process with BigNum creates two new Int64s.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)