[
https://issues.apache.org/jira/browse/IMPALA-11447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569700#comment-17569700
]
ASF subversion and git services commented on IMPALA-11447:
----------------------------------------------------------
Commit 7e65e0095a1adbd8e717262909d2bb16c407de63 in impala's branch
refs/heads/master from Csaba Ringhofer
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=7e65e0095 ]
IMPALA-11447: Fix crash when fetching arrays/structs with result caching
Some parts of HS2ColumnarResultSet were not prepared for returning
non-scalar types. This code only runs if impala.resultset.cache.size
is set, which is not the case in most of tests. The issue was caught
with Hue, which uses result caching.
Testing:
- Added a regression test in test_fetch_first.py, which contained
other tests that used result caching.
- It turned out that some tests in the file did not run at all,
as @needs_session() needs the parenthesis at the end. For this
reason some test fixes were added to run them correctly, though
these changes are totally unrelated to the current issue.
Change-Id: Ia4dd8f76187dc3555207e2d30d46d811e0a7a126
Reviewed-on: http://gerrit.cloudera.org:8080/18768
Reviewed-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Wenzhe Zhou <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Fetching arrays/structs crashes Impala if result caching is enabled
> -------------------------------------------------------------------
>
> Key: IMPALA-11447
> URL: https://issues.apache.org/jira/browse/IMPALA-11447
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Affects Versions: Impala 4.1.0
> Reporter: Csaba Ringhofer
> Assignee: Csaba Ringhofer
> Priority: Major
> Labels: complextype
>
> HS2ColumnarResultSet::AddRows(const QueryResultSet* other ... ) is not
> prepared for handling complex types:
> https://github.com/apache/impala/blob/1d16367afb1e520bae5992c1e6c92b4fb41d2655/be/src/service/query-result-set.cc#L412
> A debug build will hit the DCHECK, while a release build will crash a bit
> later. This didn't come up during testing as impala-shell doens't set
> impala.resultset.cache.size
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]