apache / apache/arrow-rs

ArrayData::from_pyarrow Should Validate ArrayData

Open
#3,672 1 comment 0 reactions 1 assignee Claimed by @Rich-T-kid View on GitHub
bug
Dominant language
Rust
Stars
3.6k
Forks
1.3k
Avg merge
2d 18h
Merged PRs (30d)
169

Description

**Describe the bug**

ArrayData::from_pyarrow does not perform any validation of the data that it is fed, this allows constructing an invalid ArrayData using safe APIs, violating soundness.

**To Reproduce**

**Expected behavior**

We should probably provide an `unsafe` unchecked version of this API, with a corresponding safe version that performs validation

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.