orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-491) PPD: Column name lookups need to look a struct deeper for ACID
Date Wed, 10 Apr 2019 21:41:00 GMT
Gopal V created ORC-491:
---------------------------

             Summary: 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


{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)

Mime
View raw message