You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2026/04/01 17:00:23 UTC

[I] Inefficient DPP fallback for TPC-DS [datafusion-comet]

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

   ### Describe the bug
   
   In TPC-DS, the fact table scans fall back to Spark because they use DPP. For some reason, the filter that wraps the scan also falls back to Spark, but Comet uses JVM shuffle write after the filter. This means there are two transitions in the plan.
   
   ```
   CometShuffleWriter
     CometRowToColumnar
       SparkFilter
         SparkColumnarToRow
           SparkScan
   ```
   
   The `CometRowToColumnar` also involves FFI transfers.
   
   
   ### Steps to reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Inefficient DPP fallback for TPC-DS [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #3874:
URL: https://github.com/apache/datafusion-comet/issues/3874#issuecomment-4173073364

   > The solution is probably to wrap the Spark scan in `CometSparkToColumnarExec` so the rest of the stage is Comet native.
   
   This may add too much overhead. Perhaps we just need to fall back for the entire stage, which will cause the rest of the query to fall back.
   
   


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Inefficient DPP fallback for TPC-DS [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove commented on issue #3874:
URL: https://github.com/apache/datafusion-comet/issues/3874#issuecomment-4171717015

   The solution is probably to wrap the Spark scan in `CometSparkToColumnarExec` so the rest of the stage is Comet native.
   
   However, we need to fix the compatibility issues (timezone related) with `CometSparkToColumnarExec` first.


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Inefficient DPP fallback for TPC-DS [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #3874: Inefficient DPP fallback for TPC-DS
URL: https://github.com/apache/datafusion-comet/issues/3874


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org