andygrove opened a new issue, #7863:
URL: https://github.com/apache/datafusion-comet/issues/7863

   ### What is the problem the feature request solves?
   
   Comet runs one task per Spark split, so a 10 TB TPC-DS run launches about as 
many tasks as Spark: 1.26 million across the suite in Onehouse's benchmark, 
against 177,000 for Onehouse Quanton on the same cluster ([DataFlint part 
2](https://medium.com/@menishmueli/onehouse-quanton-vs-spark-4-1-the-10-tb-tpc-ds-benchmark-analyzed-with-dataflint-f087e7864bdf)).
 Quanton's native reader runs many scan threads in each task over larger 
splits, so most of the per-task scheduling and serialization cost goes away. A 
`store_sales` scan in q9 was 15,094 tasks on Comet and 1,497 on Quanton. The 
benchmark's tables were Iceberg on S3, so this went through the native Iceberg 
scan.
   
   The cost of the larger tasks is idle cores on short queries, which DataFlint 
gives as the reason Quanton's gain on queries under 10 seconds is only about 2×.
   
   ### Describe the potential solution
   
   For the native Iceberg scan first, since that's where the benchmark ran:
   
   - Plan fewer, larger tasks per scan by grouping Iceberg file scan tasks into 
larger combined tasks, with a target size above `read.split.target-size`.
   - Read more files at once inside each task to keep the cores busy. 
`spark.comet.scan.icebergNative.dataFileConcurrencyLimit` already does this 
(default 2).
   - Only enlarge tasks when the scan has enough data that the stage still 
fills every core.
   
   Then decide whether the native Parquet scan should do the same (#3817 is 
related).
   
   Measure the task count and query time on TPC-DS SF1000 in S3, including 
short queries, since this can make them slower.
   
   ### Additional context
   
   Part of the 10 TB TPC-DS gap epic.
   


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