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)

Reply via email to