This is an automated email from the ASF dual-hosted git repository.

cgivre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git


The following commit(s) were added to refs/heads/master by this push:
     new ce4ee732a2 DRILL-8212: Join queries fail with StackOverflowError 
(#2536)
ce4ee732a2 is described below

commit ce4ee732a2baf9a80fea47f60f5b9fa47316eb12
Author: Volodymyr Vysotskyi <[email protected]>
AuthorDate: Mon May 9 18:52:24 2022 +0300

    DRILL-8212: Join queries fail with StackOverflowError (#2536)
---
 .../java/org/apache/drill/exec/planner/cost/DrillRelMdSelectivity.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/cost/DrillRelMdSelectivity.java
 
b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/cost/DrillRelMdSelectivity.java
index 9f3beca12c..95921e0517 100644
--- 
a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/cost/DrillRelMdSelectivity.java
+++ 
b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/cost/DrillRelMdSelectivity.java
@@ -372,7 +372,7 @@ public class DrillRelMdSelectivity extends RelMdSelectivity 
{
     int[] adjustments = new int[rel.getRowType().getFieldCount()];
 
     if (DrillRelOptUtil.guessRows(rel)) {
-      return super.getSelectivity(rel, mq, predicate);
+      return RelMdUtil.guessSelectivity(predicate);
     }
 
     if (predicate != null) {

Reply via email to