apache / arrow-rs

Official Rust implementation of Apache Arrow
https://arrow.apache.org/
Apache License 2.0
2.62k stars 802 forks source link

Add Array::with_nulls #6659

Closed alamb closed 3 weeks ago

alamb commented 3 weeks ago

Which issue does this PR close?

Closes https://github.com/apache/arrow-rs/issues/6528

Rationale for this change

Propose adding a new safe API to replace nulls

@tustvold mentioned the potential implications of this API https://github.com/apache/arrow-rs/issues/6528#issuecomment-2401522424 here. I added an example to show what was going on

What changes are included in this PR?

Add Array::with_nulls

Are there any user-facing changes?

New API

alamb commented 3 weeks ago

I agree -- let's not do this. I have another idea that might help https://github.com/apache/arrow-rs/issues/6528#issuecomment-2449860007