You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2019/04/10 21:41:00 UTC
[jira] [Created] (ORC-491) PPD: Column name lookups need to look a
struct deeper for ACID
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)