viirya commented on code in PR #7249:
URL: https://github.com/apache/datafusion-comet/pull/7249#discussion_r4699822445


##########
native/core/src/execution/memory_pools/mod.rs:
##########
@@ -94,22 +92,16 @@ fn create_pool(
     match pool_type {
         MemoryPoolType::GreedyUnified => {
             acquire_task_shared_pool(task_attempt_id, running_tasks, || {
-                Arc::new(SpillReplayPool::new(
-                    task_attempt_id,
-                    tracked(CometUnifiedMemoryPool::with_spark(spark())),
-                ))
+                tracked(CometUnifiedMemoryPool::with_spark(spark()))
             })
         }
         MemoryPoolType::FairUnified => {
             acquire_task_shared_pool(task_attempt_id, running_tasks, || {
-                Arc::new(SpillReplayPool::new(
-                    task_attempt_id,
-                    tracked(CometFairMemoryPool::with_spark(
-                        spark(),
-                        pool_size,
-                        off_heap_size,
-                        running_tasks.clone(),
-                    )),
+                tracked(CometFairMemoryPool::with_spark(

Review Comment:
   Thanks for restoring it. The two #6880 PartialMerge tests now fail in every 
`[exec]` job with an OOM in `ClusteredPartialAggregateStream[0]`. That looks 
like the merge starvation from `b46499740` again.
   
   As far as I can tell, `switch_to_clustered_final_stream` builds the replay 
`ClusteredFinalAggregateStream` before the merge stream is polled. Its 
constructor reserves the initial table (`clustered_final_stream.rs:188`). So 
when `get_sorted_spill_files_to_merge` runs, the consumer already holds memory 
in a sibling reservation. That makes `consumer_used > reservation.size()` true 
for the merge's own refusals. Is there another way to tell the merge's 
reservation from the replay's? The new pool test steps the reservations in the 
opposite order, so it doesn't catch this.
   



##########
.github/workflows/pr_build_linux.yml:
##########
@@ -484,13 +484,16 @@ jobs:
   # native/native-executors, the Comet Native Executors cluster (issue #7288),
   # is a Cargo workspace of its own so that the main build never depends on
   # Ballista. linux-test-rust doesn't build it, so this job does, and the lint
-  # job checks its formatting. When Comet moves to a DataFusion major that
-  # Ballista hasn't released yet, the upgrade can turn this job off until
-  # Ballista catches up.
+  # job checks its formatting. The job is turned off because Comet is pinned
+  # to DataFusion's 56.0.0 tag and Ballista main is still on its 56.0.0-rc1
+  # tag, so the build has two copies of DataFusion. Turn it back on, by
+  # restoring the `if:` below, once the Ballista pin in
+  # native/native-executors/Cargo.toml is on the 56.0.0 tag.
   linux-test-native-executors:
     needs: lint
     name: ubuntu-latest/native-executors
-    if: ${{ !inputs.cache-refresh-only && inputs.profiles != 'nightly' }}
+    # if: ${{ !inputs.cache-refresh-only && inputs.profiles != 'nightly' }}
+    if: false

Review Comment:
   The job builds now, but `runs_a_query_across_a_range_exchange` fails with 
`CometFragmentExec input 0 has 4 partitions, expected 1` from 
`EnsureRequirements`. Is that a change on Ballista main, or does Comet's 
fragment need to report its partitioning differently on 56?
   



##########
native/core/src/parquet/parquet_exec.rs:
##########
@@ -839,6 +841,7 @@ mod tests {
     /// Spark's string type as those types, not as `Binary`. A malformed value 
must still decode
     /// to U+FFFD.
     #[tokio::test]
+    #[ignore = "DataFusion 56 coerces nested BINARY to unvalidated Utf8: 
https://github.com/apache/datafusion-comet/issues/7469";]

Review Comment:
   Sounds good. The PR still shows as ready for review, though. Could you 
convert it to a draft while apache/datafusion#27754 is pending?
   



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