Skip to content

ARROW-1192: [JAVA] Use buffer slice for splitAndTransfer in List and …#819

Closed
StevenMPhillips wants to merge 1 commit into
apache:masterfrom
StevenMPhillips:bugs/arrow-1192
Closed

ARROW-1192: [JAVA] Use buffer slice for splitAndTransfer in List and …#819
StevenMPhillips wants to merge 1 commit into
apache:masterfrom
StevenMPhillips:bugs/arrow-1192

Conversation

@StevenMPhillips

Copy link
Copy Markdown
Contributor

…Union vectors

Includes a fix for splitAndTransfer in BitVector for the case when split length is 0

…Union vectors

Includes a fix for splitAndTransfer in BitVector for the case when split length is 0
@xhochy

xhochy commented Jul 17, 2017

Copy link
Copy Markdown
Member

@StevenMPhillips Can you give a bit more context on this change so that I'm able to review it?

@wesm

wesm commented Jul 17, 2017

Copy link
Copy Markdown
Member

Needs a unit test also

@jacques-n

Copy link
Copy Markdown
Contributor

@siddharthteotia, can you take over this pull request and add some unit tests?

The goal of this PR was to update some vectors so they were more efficient at splitting vectors into subvectors. Many vectors are already efficient, minimizing manipulation of data. However, the ListVector and BitVector were doing far more work than necessary. In Dremio we use splitAndTransfer when unrolling lists. Ensuring that these apis are efficient substantially reduces CPU overhead during this operation. See the code using it here: https://github.com/dremio/dremio-oss/blob/master/sabot/kernel/src/main/java/com/dremio/sabot/op/flatten/FlattenTemplate.java#L205.

Probably makes sense to move our Dremio code for this class over to Arrow as well:

https://github.com/dremio/dremio-oss/blob/master/sabot/kernel/src/test/java/com/dremio/exec/vector/TestSplitAndTransfer.java

@siddharthteotia

siddharthteotia commented Jul 20, 2017

Copy link
Copy Markdown
Contributor

@jacques-n
Sure. I will add the unit tests.

@siddharthteotia

Copy link
Copy Markdown
Contributor

I have opened a new PR -- #901

@wesm

wesm commented Jul 29, 2017

Copy link
Copy Markdown
Member

This one can be closed

@wesm

wesm commented Aug 4, 2017

Copy link
Copy Markdown
Member

Can this be closed?

@jacques-n

Copy link
Copy Markdown
Contributor

@StevenMPhillips, please close.

@wesm

wesm commented Sep 19, 2017

Copy link
Copy Markdown
Member

@StevenMPhillips can you close?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants