You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Vineet Garg (JIRA)" <ji...@apache.org> on 2019/04/11 18:39:00 UTC

[jira] [Commented] (ORC-491) PPD: Column name lookups need to look a struct deeper for ACID

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

Vineet Garg commented on ORC-491:
---------------------------------

[~gopalv] Can you assign this to me? (I don't have Jira permission)

> PPD: Column name lookups need to look a struct deeper for ACID
> --------------------------------------------------------------
>
>                 Key: ORC-491
>                 URL: https://issues.apache.org/jira/browse/ORC-491
>             Project: ORC
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>            Reporter: Gopal V
>            Priority: Major
>
> {code}
>   public static int[] mapSargColumnsToOrcInternalColIdx(
>                             List<PredicateLeaf> sargLeaves,
>                             SchemaEvolution evolution) {
>     int[] result = new int[sargLeaves.size()];
>     Arrays.fill(result, -1);
>     for(int i=0; i < result.length; ++i) {
>       String colName = sargLeaves.get(i).getColumnName();
>       result[i] = findColumns(evolution, colName);
>     }
>     return result;
>   }
> {code}
> returns -1 for all data column names, because it was one level deeper.
> {code}
> sarg = [(IS_NULL date_time_date)]
> colName = date_time_date
> struct<operation:int,originalTransaction:bigint,bucket:int,rowId:bigint,currentTransaction:bigint,row:struct<date_time_date:date,term:string>>
> {code}



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