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 2024/03/27 14:03:00 UTC
[jira] [Commented] (IMPALA-12879) Conjunct not referring to table field causes ERROR for Iceberg table
[ https://issues.apache.org/jira/browse/IMPALA-12879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831370#comment-17831370 ]
ASF subversion and git services commented on IMPALA-12879:
----------------------------------------------------------
Commit 580a477e6938f1c486540e3cb1408d20da1734d0 in impala's branch refs/heads/master from Zoltan Borok-Nagy
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=580a477e6 ]
IMPALA-12879: Conjunct not referring to table field causes ERROR for Iceberg table
The following query throws an error for Iceberg tables:
select * from ice_tbl where rand() < 0.001;
It's because the predicate 'rand() < 0.001' doesn't involve any table
columns. Because of a bug in
IcebergScanPlanner.hasPartitionTransformType() the method throws an
IndexOutOfBoundsException. This patch fixes the method to handle
such predicates.
Testing:
* added e2e tests
Change-Id: Id43a6798df3f4cc3a0e00ac610e25aa3b5781342
Reviewed-on: http://gerrit.cloudera.org:8080/21179
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Gabor Kaszab <ga...@cloudera.com>
> Conjunct not referring to table field causes ERROR for Iceberg table
> --------------------------------------------------------------------
>
> Key: IMPALA-12879
> URL: https://issues.apache.org/jira/browse/IMPALA-12879
> Project: IMPALA
> Issue Type: Bug
> Reporter: Zoltán Borók-Nagy
> Assignee: Zoltán Borók-Nagy
> Priority: Major
> Labels: impala-iceberg, ramp-up
>
> I tried to sample a table with the following query:
> {noformat}
> select * from ice_tbl where rand(unix_timestamp()) < 0.001;{noformat}
> And I got the following error:
> {noformat}
> ERROR: IndexOutOfBoundsException: Index: 0, Size: 0{noformat}
> I caught the exception via JDB, stack trace was:
> {noformat}
> Thread-152931[1] where
> [1] java.util.ArrayList.rangeCheck (ArrayList.java:659)
> [2] java.util.ArrayList.get (ArrayList.java:435)
> [3] org.apache.impala.planner.IcebergScanPlanner.hasPartitionTransformType (IcebergScanPlanner.java:813)
> [4] org.apache.impala.planner.IcebergScanPlanner.isPartitionColumnIncluded (IcebergScanPlanner.java:795)
> [5] org.apache.impala.planner.IcebergScanPlanner.extractIcebergConjuncts (IcebergScanPlanner.java:769)
> [6] org.apache.impala.planner.IcebergScanPlanner.<init> (IcebergScanPlanner.java:152)
> [7] org.apache.impala.planner.SingleNodePlanner.createScanNode (SingleNodePlanner.java:1,881)
> [8] org.apache.impala.planner.SingleNodePlanner.createTableRefNode (SingleNodePlanner.java:2,209)
> [9] org.apache.impala.planner.SingleNodePlanner.createTableRefsPlan (SingleNodePlanner.java:933)
> [10] org.apache.impala.planner.SingleNodePlanner.createSelectPlan (SingleNodePlanner.java:748)
> [11] org.apache.impala.planner.SingleNodePlanner.createQueryPlan (SingleNodePlanner.java:280)
> [12] org.apache.impala.planner.SingleNodePlanner.createSingleNodePlan (SingleNodePlanner.java:172)
> [13] org.apache.impala.planner.Planner.createPlanFragments (Planner.java:128)
> ...
> {noformat}
--
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