This repository was archived by the owner on Nov 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back out "Delegate
IColumn.fill_null/drop_null
to Arrow" (#109)
Summary: Pull Request resolved: #109 Original commit changeset: 14ad956d406f Original Phabricator Diff: D32770009 The commit fails GitHub CI: https://github.com/facebookresearch/torcharrow/runs/4448410206?check_suite_focus=true In PyArrow 6.0, it's legit for an array to have non-null NullBuffer while null_count is zero: ``` import pyarrow as pa >>> pa.__version__ '6.0.0' >>> a = pa.array([1, 2, None, 3]) >>> a = a.fill_null(12) >>> a.buffers() [<pyarrow.lib.Buffer object at 0x7fe688222330>, <pyarrow.lib.Buffer object at 0x7fe6680c2ef0>] ``` So this triggers https://github.com/facebookincubator/velox/blob/674562b94780b8a895fd291c310778e4de73e7e9/velox/vector/arrow/Bridge.cpp#L499-L502 In contrast, PyArrow 2.0 will make NullBuffer to be null: ``` >>> pa.__version__ '2.0.0' >>> a = pa.array([1, 2, None, 3]) >>> a = a.fill_null(12) >>> a.buffers() >>> a.buffers() [None, <pyarrow.lib.Buffer object at 0x7fc4b8031870>] ``` Reviewed By: OswinC Differential Revision: D32940474 fbshipit-source-id: 91da656cf20f0c0c3be022e764877d0854d4d87e
- Loading branch information
Showing
4 changed files
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters