Skip to content

Conversation

@terencehonles
Copy link
Contributor

@terencehonles terencehonles commented Nov 5, 2020

OrcStripeReaderJniWrapper::getSchema previously used nullptr for the memory pool parameter to arrow::ipc::SerializeSchema to implicitly call arrow::default_memory_pool().

As part of ARROW-10080 (#8533), a check was placed to fail on nullptr being provided. This change removes the check, but also explicitly calls arrow::default_memory_pool() which is used elsewhere in the JNI wrapper.

`OrcStripeReaderJniWrapper::getSchema` previously used `nullptr` for the
memory pool parameter to `arrow::ipc::SerializeSchema` to implicitly
call `arrow::default_memory_pool()`.

As part of https://issues.apache.org/jira/browse/ARROW-10080, a check
was placed to fail on `nullptr` being provided. This change removes the
check, but also explicitly calls `arrow::default_memory_pool()` which is
used elsewhere in the JNI wrapper.
@github-actions
Copy link

github-actions bot commented Nov 5, 2020

@kiszk
Copy link
Member

kiszk commented Nov 5, 2020

LGTM

@terencehonles
Copy link
Contributor Author

@kiszk you mind merging this in? Not sure if anything else needs to happen, but I don't have write access to the repo 🙂

@kiszk
Copy link
Member

kiszk commented Nov 5, 2020

I do not have the grant to merge it, too. I expect that others will look at this.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

I'll merge this.

@bkietz You can try re-adding the DCHECK_NE again later if you want.

@kou kou closed this in cb4f26d Nov 5, 2020
@terencehonles terencehonles deleted the arrow-10499 branch November 5, 2020 21:36
@BryanCutler
Copy link
Member

Thanks for fixing this @terencehonles !

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.

4 participants