[
https://issues.apache.org/jira/browse/IMPALA-13407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887318#comment-17887318
]
ASF subversion and git services commented on IMPALA-13407:
----------------------------------------------------------
Commit 7e92f80a1bcf4d1f3adc0008f81f5d193eec82c2 in impala's branch
refs/heads/master from Daniel Becker
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=7e92f80a1 ]
IMPALA-13407: Codegen fails with struct in TOP-N
The following query succeeded with codegen disabled but failed with
codegen enabled:
use functional_parquet;
select str, alltypes from complextypes_structs order by str limit 4;
The root cause is the handling of CHARs in
CodegenAnyVal::StructChildToReadWriteInfo(). The code assumed that CHARs
could be handled the same way as STRINGs and VARCHARs but this is
incorrect. This patch fixes it by adding CHAR-specific handling.
Testing:
- added test queries to top-n-complex.test and also sort-complex.test
for consistency
- cleanup: moved one test with a LIMIT clause from
sort-complex.test to top-n-complex.test; also brought the two test
files in sync by adding counterparts to queries with and without
LIMIT clauses in the other file where they were missing.
Change-Id: I25c3ad73dea062a0de2402c20f39097625fbb2c8
Reviewed-on: http://gerrit.cloudera.org:8080/21865
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Codegen fails with struct in TOP-N
> ----------------------------------
>
> Key: IMPALA-13407
> URL: https://issues.apache.org/jira/browse/IMPALA-13407
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Reporter: Daniel Becker
> Assignee: Daniel Becker
> Priority: Major
> Labels: complextype
>
> The following query passes with codegen disabled but crashes when codegen is
> enabled:
> {code:java}
> select str, alltypes from complextypes_structs order by str limit 4;{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]