You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/06/29 20:05:00 UTC

[jira] [Commented] (ARROW-1166) Errors in Struct type's example and missing reference in Layout.md

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

Wes McKinney commented on ARROW-1166:
-------------------------------------

As I commented in the PR, in item 2, it is acceptable for the child array to have null count 0 even though the parent struct has a null in that slot. I agree that your changes make the example in particular more clear (as though we were constructing the struct from the input data), though

> Errors in Struct type's example and missing reference in Layout.md
> ------------------------------------------------------------------
>
>                 Key: ARROW-1166
>                 URL: https://issues.apache.org/jira/browse/ARROW-1166
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 0.4.1
>            Reporter: Fang Zheng
>            Assignee: Fang Zheng
>            Priority: Trivial
>              Labels: documentation, easyfix
>             Fix For: 0.5.0
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Hi,
> There seem to be several minor issues in Layout.md: 
> 1. In the example for Struct type (https://github.com/apache/arrow/blob/master/format/Layout.md#struct-type), the second array element is "{null, 2}" in the text, but in the Arrow representation, the value buffer for field 0 has "bob" in the corresponding slot. Either the text should be changed from "null" to "bob", or the Null count, Null bitmap buffer, and Offsets buffer should be changed to count the second element in field 0 as null. 
> 2. In the same Struct type example, the third element in the Struct array is "null" in text, but the value buffer for field 1 has 3 in the corresponding slot in the Arrow representation. The Null count, Null bitmap buffer, and Value buffer should be changed to count the third element in field 1 as null.
> 3. In the Dictionary encoding section (https://github.com/apache/arrow/blob/master/format/Layout.md#dictionary-encoding), there is a missing reference to "Message.fbs". 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)