[ https://issues.apache.org/jira/browse/IMPALA-11447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583878#comment-17583878 ]
ASF subversion and git services commented on IMPALA-11447: ---------------------------------------------------------- Commit c90d088c6f9cd37b3db463b038ad32cc130c02e9 in impala's branch refs/heads/branch-4.1.1 from Csaba Ringhofer [ https://gitbox.apache.org/repos/asf?p=impala.git;h=c90d088c6 ] 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. Backport issue: - Test fails due to STRUCT in SelectList not supported on Parquet. Changed to use the corresponding ORC table. Change-Id: Ia4dd8f76187dc3555207e2d30d46d811e0a7a126 Reviewed-on: http://gerrit.cloudera.org:8080/18768 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Reviewed-by: Wenzhe Zhou <wz...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Reviewed-on: http://gerrit.cloudera.org:8080/18889 Tested-by: Quanlong Huang <huangquanl...@gmail.com> > 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 > Fix For: Impala 4.2.0 > > > 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: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org