Amogh Margoor has uploaded a new patch set (#3). (
http://gerrit.cloudera.org:8080/17658 )
Change subject: IMPALA-10703: Fix crash on reading ACID table while printing
SchemaPath of tuple/slots.
......................................................................
IMPALA-10703: Fix crash on reading ACID table while printing SchemaPath of
tuple/slots.
While reading ACID ORC file, the SchemaPath from TupleDescriptor
or SlotDescriptor are converted to fully qualified path via
PrintPath on few codepaths. PrintPath needs non-canonical table
path though. For non-ACID table this will be same as SchemaPath
of tuple/slot. However for ACID tables, it will be different as
file schema and table schema are not same.
E.g., ACID table foo(id int) will look like following in file:
{
operation: int,
originalTransaction: bigInt,
bucket: int,
rowId: bigInt,
currentTransaction: bigInt,
row: struct<id: int>
}
So SchemaPath for id will [5, 0], but PrintPath would not
understand that. It needs to be converted into table path [1]
as table schema looks like this:
{
row_id: struct < ...ACID Columns>
id: int
}
Change-Id: Ib7f15c31e0f8fc5d90555d1f2d51313eaffeb074
---
M be/src/exec/hdfs-orc-scanner.cc
M be/src/exec/orc-metadata-utils.h
2 files changed, 53 insertions(+), 23 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/58/17658/3
--
To view, visit http://gerrit.cloudera.org:8080/17658
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib7f15c31e0f8fc5d90555d1f2d51313eaffeb074
Gerrit-Change-Number: 17658
Gerrit-PatchSet: 3
Gerrit-Owner: Amogh Margoor <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>