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

cedric commented on ORC-471:
----------------------------

Cf [proposed 
PR|[https://github.com/apache/orc/pull/368]|https://github.com/apache/orc/pull/368].]
 which fixes everything for me.

> C++ library needs some doc regarding NULLs
> ------------------------------------------
>
>                 Key: ORC-471
>                 URL: https://issues.apache.org/jira/browse/ORC-471
>             Project: ORC
>          Issue Type: Wish
>          Components: C++, site
>            Reporter: cedric
>            Priority: Minor
>              Labels: documentation
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I'm trying to use the C++ library to write ORC files and handling of NULLs in 
> StructVectorColumn is not clear from the doc.
> When a row is NULL, the code of StructColumnWriter::add seems to expect the 
> children columns to be defined (and, I guess, NULL), as it uses the passed 
> numValues both to add the isNulls and to add each subfields.
> But on another hand, the decoder seems to expect the subfields to be missing 
> when the struct row is NIULL.
> Can you shed some light here, or better in the doc ?
> A line about what to do for NULL values for each possible type in the doc 
> would be great.
> If I knew what the APi is supposed to be then I would know where to look for 
> the bug.
>  
> Thank you!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to