You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dominik Moritz (Jira)" <ji...@apache.org> on 2022/01/17 02:59:00 UTC

[jira] [Closed] (ARROW-9496) [JS] toArray() called on filtered Table returns all rows

     [ https://issues.apache.org/jira/browse/ARROW-9496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Moritz closed ARROW-9496.
---------------------------------

> [JS] toArray() called on filtered Table returns all rows
> --------------------------------------------------------
>
>                 Key: ARROW-9496
>                 URL: https://issues.apache.org/jira/browse/ARROW-9496
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: JavaScript
>         Environment: OSX 10.15.2
> Behavior seen in browser and node
>            Reporter: Peter Murphy
>            Priority: Major
>
> Trying to experiment with building a library on top of Apache Arrow's Javascript implementation, but ran into this:
> Example:
>  [https://runkit.com/pjm17971/pond-arrow]
> {code:java}
> const filtered = table.filter(predicate.col("pressure").lt(28.5))
> filtered.count() // 2 (correct)
> {code}
>  However:
> {code:java}
> const result = filtered.toArray().map(row => row.toJSON()) // 4 rows (??){code}
> Is this expected behavior?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)