Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9496

[JS] toArray() called on filtered Table returns all rows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • JavaScript
    • None
    • OSX 10.15.2
      Behavior seen in browser and node

    Description

      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

      const filtered = table.filter(predicate.col("pressure").lt(28.5))
      filtered.count() // 2 (correct)
      

       However:

      const result = filtered.toArray().map(row => row.toJSON()) // 4 rows (??)

      Is this expected behavior?

      Attachments

        Activity

          People

            Unassigned Unassigned
            pjm17971 Peter Murphy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: