[
https://issues.apache.org/jira/browse/ORC-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152508#comment-17152508
]
Arvin Zheng commented on ORC-644:
---------------------------------
I just revisited the code again, to describe the issue more clearly, the code
does map fields in Struct by their index when orc.force.positional.evolution is
set to true, but it allows only one level of index mapping, nested Struct will
always be mapped by field name, which sounds more like a bug to me.
i.e. the code is able to use index mapping for a Struct column, but not able to
map a nested Struct (Array<Struct> or Struct<Struct>) by indexes
> nested struct evaluation does not respect to orc.force.positional.evolution
> ---------------------------------------------------------------------------
>
> Key: ORC-644
> URL: https://issues.apache.org/jira/browse/ORC-644
> Project: ORC
> Issue Type: Bug
> Components: Java
> Affects Versions: master
> Reporter: Arvin Zheng
> Priority: Major
>
> I noticed that even when orc.force.positional.evolution is set to true, the
> nested Struct evolution is still Hive field name based, which caused some of
> our queries to return incorrect values for fields inside a nested Struct
> since our Hive column name does not match to ORC column name.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)