You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 12:49:02 UTC

[jira] [Commented] (ARROW-11847) [Rust] Confusion: `null_buffer` contains `1` to indicate `valid`

    [ https://issues.apache.org/jira/browse/ARROW-11847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332226#comment-17332226 ] 

Andrew Lamb commented on ARROW-11847:
-------------------------------------

Migrated to github: https://github.com/apache/arrow-rs/issues/195

> [Rust] Confusion: `null_buffer` contains `1` to indicate `valid`
> ----------------------------------------------------------------
>
>                 Key: ARROW-11847
>                 URL: https://issues.apache.org/jira/browse/ARROW-11847
>             Project: Apache Arrow
>          Issue Type: Task
>          Components: Rust
>            Reporter: Ben Chambers
>            Priority: Minor
>
> Filing this because it has bitten me once or twice. The name `null_buffer` makes me *think* that I'm getting a buffer that indicates (when true) that the corresponding value is null. But in actuality, we get back a buffer that indicates(when true) that the corresponding value is valid.
> I'm wondering if there is a reason for this discrepancy or if it could make sense to rename `null_buffer` to `valid_buffer`?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)