Skip to content

[Java] ArrowStreamWriter accumulates ArrowBlock but does not use them #19028

Closed

Description

@asfimport

ArrowStreamWriter inherits from ArrowWriter the behavior of accumulating an ArrowBlock for each ArrowRecordBatch that is written. But this data is never used in the context of ArrowStreamWriter.

public abstract class ArrowWriter implements AutoCloseable {
  private final List<ArrowBlock> recordBlocks = new ArrayList<>();
  ...


   protected void writeRecordBatch(ArrowRecordBatch batch)  {
      ...
     recordBlocks.add(block);
   }
}

writeRecordBatch can be overridden in ArrowStreamWriter to avoid adding the memory overhead.

Reporter: Eric Wohlstadter
Assignee: Teddy Choi / @pudidic

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-2632. Please see the migration documentation for further details.

Activity

  1. asfimport commented on May 29, 2018

    @asfimport
    Author

    Bryan Cutler / @BryanCutler:
    Issue resolved by pull request 2079
    #2079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions