iwanttobepowerful commented on code in PR #5385:
URL: https://github.com/apache/calcite/pull/5385#discussion_r4454438294


##########
core/src/test/resources/sql/sub-query.iq:
##########
@@ -11242,3 +11246,78 @@ order by e.ename;
 (14 rows)
 
 !ok
+
+!if (use_old_decorr) {
+# Test case for [CALCITE-7914] Rebuilding correlation values must not resample 
the outer input.
+select (select count(*) from (values 1) s(x) where t.k < s.x) as p
+from (select deptno as k from dept tablesample bernoulli(50)) t;
+EnumerableCalc(expr#0..1=[{inputs}], expr#2=[IS NULL($t1)], expr#3=[0:BIGINT], 
expr#4=[CASE($t2, $t3, $t1)], P=[$t4])
+  EnumerableCorrelate(correlation=[$cor0], joinType=[left], 
requiredColumns=[{0}])

Review Comment:
   also here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to