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

Owen O'Malley commented on ORC-92:
----------------------------------

How about if we select both:
1. The parents all of the way to the root.
2. All recursive children from a selected column.

Thus, 3 in your example would read 0, 3, 4, 5, 6, 7, and 8.
If you instead selected 4 and 6 it would read 0, 3, 4, 6, 7, and 8.

I feel like that would be a better match for what users would expect. In other 
words, if they select c22, they expect both d0 and d1.

What do you think?

> Support type id (column id) selection in ReaderOptions
> ------------------------------------------------------
>
>                 Key: ORC-92
>                 URL: https://issues.apache.org/jira/browse/ORC-92
>             Project: Orc
>          Issue Type: New Feature
>          Components: C++
>    Affects Versions: 1.2.0
>            Reporter: Chunyang Wen
>            Assignee: Chunyang Wen
>            Priority: Minor
>             Fix For: 1.2.1
>
>
> Currently, in C++ version of orc. We can only select by filed id or field 
> name. This works fine when data structure is flat such as struct<int1:int, 
> s1:string, list1:array<int>>. But when we have a nested structure, 
> struct<int1:int, struct1:struct<int2:int, long2:long>>. We still can only 
> select the field of int1 and struct1. We can not directly select long2.
> We can select long2 by its column id. This can be achieved by updating 
> include function in ReaderOptions. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to