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


##########
.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:
   Preflight rejects this because the job loses its `cache-refresh-only` and 
`nightly` guards. Since then every other job has been skipped, so nothing has 
run against the crates.io 56.0.0 build. Something like `if: ${{ false && 
!inputs.cache-refresh-only && inputs.profiles != 'nightly' }}` should keep 
Preflight happy. The comment above, and the one in 
`native-executors/Cargo.toml`, still say Comet is on the 56.0.0 tag.



##########
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:
   As I read #25383, the merge's headroom is only a probe. It grows to 2× and 
then shrinks back before the replay starts. After that, the replay's 
`ClusteredFinalAggregateStream` (`Full`, no spill path) calls `try_grow` under 
the `FinalHashAggregateStream` consumer, which `limited_to_its_share` still 
limits. What keeps the replay from failing in these two cases?
   
   1. Spark grants that memory elsewhere, or another spillable consumer 
registers, between the probe and the replay.
   2. A group grows past the merge buffers, as #25383 itself notes for 
`array_agg`.
   
   1.2 overcommitted in both cases. Do the #6254 or #6857 tests cover either 
one?



##########
native/Cargo.toml:
##########
@@ -85,9 +85,13 @@ aws-credential-types = "1.2.13"
 aws-sdk-sts = { version = "1.114.0", default-features = false }
 # Pinned to a revision rather than a release because no published iceberg-rust
 # version is on our arrow: 0.10.1 requires arrow/parquet ^58. Move to a plain
-# version requirement once a release ships on arrow 59. Bump policy: #5645.
-iceberg = { git = "https://github.com/apache/iceberg-rust";, rev = 
"de0a6ac8471da43f63382d66fac27d7e56fd273e" }
-iceberg-storage-opendal = { git = "https://github.com/apache/iceberg-rust";, 
rev = "de0a6ac8471da43f63382d66fac27d7e56fd273e", features = ["opendal-memory", 
"opendal-fs", "opendal-s3", "opendal-gcs", "opendal-oss", "opendal-azdls", 
"opendal-hdfs-native"] }
+# version requirement once a release ships on arrow 60. Bump policy: #5645.
+# The revision is on the andygrove/iceberg-rust fork: apache/iceberg-rust#3257 
(Arrow 60,

Review Comment:
   apache/iceberg-rust#3257 merged on Nov 10. Can this move back to an upstream 
`main` revision that also includes #3539, and drop the fork?



##########
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:
   apache/datafusion#27065 is closed by #27067, but that landed on `main` only, 
so 56.0.0 doesn't have it. Is the plan to get it backported for a 56.0.1, or to 
fall back or validate on the Comet side for nested binary read as string?



##########
native/core/src/execution/planner/aggregate.rs:
##########
@@ -256,15 +256,15 @@ impl OperatorBuilder for HashAggBuilder {
 
         // DataFusion 55 runs Single over input sorted on some of its keys 
with the legacy
         // GroupedHashAggregateStream, whose spill can fail against the fair 
limit (#6880). Final
-        // runs an OrderedFinalAggregateStream there, which spills, and which 
the fair pool exempts
+        // runs a ClusteredFinalAggregateStream there, which spills, and which 
the fair pool exempts
         // from that limit (`limited_to_its_share`). MergeAsPartial evaluates 
to its state under
         // Final as under Single.
         // Only partially sorted input switches: with fully sorted input Final 
has no spill path.
         // Final also reads states from the columns after the keys, so the 
input must be the keys
         // followed by native states (Spark's binary collect buffers keep 
Single, and arrive
         // unordered anyway).
         // Drop this on DataFusion 56, where the stream is 
ClusteredFinalAggregateStream

Review Comment:
   This says to drop the PartialMerge→Final switch on DataFusion 56. Is it 
still needed? If so, could the comment say why?



##########
native/core/src/execution/delta_dv.rs:
##########
@@ -2154,6 +2160,9 @@ mod tests {
         // `out[0]`'s extensions) and the clone are live at once, exactly like 
the real reader.
         let cloned_plan = attached_plan.clone();
         let metadata = read_metadata_with_page_index(&path);
+        // Deprecated in DataFusion 56 in favor of row-group-local entries; 
these tests still model

Review Comment:
   If the reader now keeps row-group-local entries, does `reader_peak_bytes` 
still bound the real peak? If that needs a separate look, could you file an 
issue and link it here?



##########
native/spark-expr/src/hash_funcs/xxhash64.rs:
##########
@@ -44,9 +44,11 @@ const SPARK_DEFAULT_SEED: i64 = 42;
 /// Compatible arguments at the default seed are delegated to 
`datafusion-spark`'s
 /// `SparkXxhash64`. The Comet kernel is kept for:
 /// - a non-default seed (`SparkXxhash64` always starts from 42)
-/// - `Struct` (and anything containing one): `SparkXxhash64` does not push a 
parent null
-///   mask into children, so hidden values of a NULL struct would affect the 
hash
-/// - a `Dictionary` nested in a list/map: `SparkXxhash64` restarts those 
hashes from 42
+/// - `Struct` (and anything containing one): before DataFusion 56, 
`SparkXxhash64` did not push
+///   a parent null mask into children, so hidden values of a NULL struct 
would affect the hash
+///   (fixed by apache/datafusion#25774)

Review Comment:
   Two of the reasons for keeping the Comet kernel no longer hold. Could you 
either widen the routing here or file an issue for it and link it from this 
comment?



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