You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/08/08 23:38:00 UTC
[jira] [Commented] (IMPALA-11443) Possible overflow in SortNode.java
[ https://issues.apache.org/jira/browse/IMPALA-11443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577044#comment-17577044 ]
ASF subversion and git services commented on IMPALA-11443:
----------------------------------------------------------
Commit 57ac65871b5b31d18d6a055be54584722c805943 in impala's branch refs/heads/branch-4.1.1 from Csaba Ringhofer
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=57ac65871 ]
IMPALA-11443: Fix partitoned top-n with -1 input cardinality
Creating a plan with partitioned top-n node with -1 input
cardinality led to having negative resource estimate and
hitting a precondtition, returning error:
"IllegalStateException: Mem estimate must be set"
This change adds handling for unknown cardinality.
Testing:
- added a planner test
Change-Id: I7e2dc7df397dc4684e6510a200f381a74c8dd984
Reviewed-on: http://gerrit.cloudera.org:8080/18744
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> Possible overflow in SortNode.java
> ----------------------------------
>
> Key: IMPALA-11443
> URL: https://issues.apache.org/jira/browse/IMPALA-11443
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Reporter: Daniel Becker
> Priority: Major
> Fix For: Impala 4.2.0
>
>
> At line
> https://github.com/apache/impala/blob/d029ae53676c8637bc4f56b80b331920c8289108/fe/src/main/java/org/apache/impala/planner/SortNode.java#L514
> the following precondition check was triggered in ResourceProfileBuilder:
> {code:java}
> Preconditions.checkState(memEstimateBytes_ >= 0, "Mem estimate must be set");
> {code}
> See https://github.com/apache/impala/blob/d029ae53676c8637bc4f56b80b331920c8289108/fe/src/main/java/org/apache/impala/planner/ResourceProfileBuilder.java#L79
> This may be due to corrupt statistics but further investigation is necessary.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org