Skip to content

Conversation

@XiangpengHao
Copy link
Contributor

@XiangpengHao XiangpengHao commented Aug 6, 2024

Which issue does this PR close?

Part of #11752.

Rationale for this change

I'm pushing string-view to stable, and fixing some incoming breaking changes. Related arrow changes: apache/arrow-rs#6043

Specifically, I think we avoided some accidental copies by incooperating the changes from arrow

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Aug 6, 2024
@XiangpengHao XiangpengHao changed the title Fix some breaking changes from latest arrow-rs Avoid copy when creating arrow buffers Aug 6, 2024
decoder.read_dictionary(dict_block, &dict_result.into())?;
decoder.read_dictionary(
dict_block,
&Buffer::from_bytes(dict_result.into()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 this was doing an implicit copy before

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @XiangpengHao

@alamb
Copy link
Contributor

alamb commented Aug 8, 2024

Merged up to resolve a conflict

@alamb alamb changed the title Avoid copy when creating arrow buffers Avoid unecessary copy when reading arrow files Aug 8, 2024
@alamb alamb merged commit 1c9583a into apache:main Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants