You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Zherui Cao (Jira)" <ji...@apache.org> on 2021/05/18 13:16:00 UTC
[jira] [Updated] (ORC-800) [ORC]if map.value is selected, map.key
should be selected automatically to prevent segment fault.
[ https://issues.apache.org/jira/browse/ORC-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zherui Cao updated ORC-800:
---------------------------
Description:
Some Tools querying map as a struct so map.key and map.value is independent. But either way map is selected. Then MapVectorBatch is accessible, then we have change to segment fault in the following situation:
MapVectorBatch::toString will definitely encounter segment fault if map.key is not selected but map.value is selected. Such a case if it is struct then it's fine. But map has to have keys and elements. then keys is nullptr. this is the cause of segment fault.
was:
Some Tools querying map as a struct so map.key and map.value is independent. But either way map is selected. Then MapVectorBatch is accessible, once MapVectorBatch is accessible,
MapVectorBatch::toString will definitely encounter segment fault due to map.key is not selected if we only select map.value.
> [ORC]if map.value is selected, map.key should be selected automatically to prevent segment fault.
> -------------------------------------------------------------------------------------------------
>
> Key: ORC-800
> URL: https://issues.apache.org/jira/browse/ORC-800
> Project: ORC
> Issue Type: Improvement
> Reporter: Zherui Cao
> Assignee: Zherui Cao
> Priority: Major
>
> Some Tools querying map as a struct so map.key and map.value is independent. But either way map is selected. Then MapVectorBatch is accessible, then we have change to segment fault in the following situation:
> MapVectorBatch::toString will definitely encounter segment fault if map.key is not selected but map.value is selected. Such a case if it is struct then it's fine. But map has to have keys and elements. then keys is nullptr. this is the cause of segment fault.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)