nathanb9 commented on code in PR #22319:
URL: https://github.com/apache/datafusion/pull/22319#discussion_r3288356323


##########
datafusion/sqllogictest/test_files/subquery.slt:
##########
@@ -872,6 +872,88 @@ SELECT t1_id, (SELECT count(*) FROM t2 WHERE t2.t2_int = 
t1.t1_int) as cnt from
 33 3
 44 0
 
+#correlated_scalar_subquery_non_count_agg_empty_defaults
+query III rowsort
+SELECT
+  t1_id,
+  (
+    SELECT regr_count(1.0, 1.0)
+    FROM t2
+    WHERE t2.t2_int = t1.t1_int
+  ) AS r,
+  (
+    SELECT approx_distinct(t2.t2_id)
+    FROM t2
+    WHERE t2.t2_int = t1.t1_int
+  ) AS d
+FROM t1
+----
+11 1 1
+22 0 0
+33 3 3
+44 0 0
+
+query III rowsort
+SELECT
+  t1_id,
+  (
+    SELECT regr_count(1.0, 1.0) AS rc
+    FROM t2
+    WHERE t2.t2_int = t1.t1_int
+  ) AS r,
+  (
+    SELECT approx_distinct(t2.t2_id) AS ad
+    FROM t2
+    WHERE t2.t2_int = t1.t1_int
+  ) AS d
+FROM t1
+----
+11 1 1
+22 0 0
+33 3 3
+44 0 0

Review Comment:
   removed



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to