Skip to content

ARROW-10826: [Rust] Add support for FixedSizeBinaryArray to MutableArrayData - #8852

Closed
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:mutable_fixed_binary
Closed

ARROW-10826: [Rust] Add support for FixedSizeBinaryArray to MutableArrayData#8852
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:mutable_fixed_binary

Conversation

@jorgecarleitao

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am having trouble figuring out why this is the expected output. I expected something like

 let expected = FixedSizeBinaryArray::from(vec![vec![0, 1], vec![0, 0]]);

As I read

 mutable.extend(0, 1, 2); // --> pick element 1 (aka vec[0, 1])
mutable.extend(0, 0, 1); // --> pick element 0 (aka vec[0, 0])

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I am sorry, I should have documented the test better. I added a comment to it. Does it became understandable with the comment? The idea is to check that this works with arrays with offsets.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh, man, I missed the call to let array = array.slice(1, 2); 👍 thanks @jorgecarleitao

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh, man, I missed the call to let array = array.slice(1, 2); 👍 thanks @jorgecarleitao

@github-actionsgithub-actionsBot added the needs-rebase A PR that needs to be rebased by the author label Dec 7, 2020
@github-actionsgithub-actionsBot removed the needs-rebase A PR that needs to be rebased by the author label Dec 7, 2020
@jorgecarleitao
jorgecarleitao deleted the mutable_fixed_binary branch December 14, 2020 07:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jorgecarleitao@alamb