You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Peter Murphy (Jira)" <ji...@apache.org> on 2020/07/15 23:19:00 UTC

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

Peter Murphy created ARROW-9496:
-----------------------------------

             Summary: 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 runkit and node.js Jest test runner
            Reporter: Peter Murphy


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.3.4#803005)