andygrove commented on code in PR #2801:
URL: 
https://github.com/apache/datafusion-ballista/pull/2801#discussion_r4682728213


##########
ballista/scheduler/src/state/aqe/test/reuse_exchange.rs:
##########
@@ -119,16 +124,27 @@ fn aggregates_the_table(stage: &Arc<dyn ExecutionPlan>) 
-> bool {
 
 #[tokio::test]
 async fn a_volatile_subplan_runs_for_each_reader() {
-    // `random()` below the shuffle, where reading one stage would give both
-    // readers the same values.
-    let sql = "with v as (select c, sum(a * random()) as s from t group by c) \
-        select c, s from v union all select c, s from v";
-    let mut planner = planner(&context(true), sql).await;
+    let mut planner = planner(&context(true), VOLATILE).await;
 
     let stages = planner.identify_runnable_stages().unwrap().unwrap();
     assert_eq!(stages.len(), 2);
 }
 
+#[tokio::test]
+async fn a_volatile_subplan_is_unshareable_for_its_volatile_expression() {

Review Comment:
   Folded the `Unshareable::Volatile` assertion into 
`a_volatile_subplan_runs_for_each_reader`. d5df21b30.



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