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 2025/10/21 23:18:21 UTC

[I] Fuzz test failure related to overflow [datafusion-comet]

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

   ### Describe the bug
   
   ## SQL
   ```
   SELECT c5, c18, c5 * c18 FROM test1 ORDER BY c5, c18;
   ```
   ### Spark Plan
   ```
   AdaptiveSparkPlan isFinalPlan=true
   +- == Final Plan ==
      *(2) Sort [c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST], true, 0
      +- AQEShuffleRead coalesced
         +- ShuffleQueryStage 0
            +- Exchange rangepartitioning(c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [plan_id=715]
               +- *(1) Project [c5#127, c18#140L, (c5#127 * cast(c18#140L as float)) AS (c5 * c18)#330]
                  +- *(1) ColumnarToRow
                     +- FileScan parquet [c5#127,c18#140L] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c5:float,c18:bigint>
   +- == Initial Plan ==
      Sort [c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST], true, 0
      +- Exchange rangepartitioning(c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [plan_id=701]
         +- Project [c5#127, c18#140L, (c5#127 * cast(c18#140L as float)) AS (c5 * c18)#330]
            +- FileScan parquet [c5#127,c18#140L] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c5:float,c18:bigint>
   
   ```
   ### Comet Plan
   ```
   AdaptiveSparkPlan isFinalPlan=true
   +- == Final Plan ==
      *(1) CometColumnarToRow
      +- CometSort [c5#127, c18#140L, (c5 * c18)#338], [c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST]
         +- AQEShuffleRead coalesced
            +- ShuffleQueryStage 0
               +- CometExchange rangepartitioning(c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, CometNativeShuffle, [plan_id=778]
                  +- CometProject [c5#127, c18#140L, (c5 * c18)#338], [c5#127, c18#140L, (c5#127 * cast(c18#140L as float)) AS (c5 * c18)#338]
                     +- CometScan [native_iceberg_compat] parquet [c5#127,c18#140L] Batched: true, DataFilters: [], Format: CometParquet, Location: InMemoryFileIndex(1 paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c5:float,c18:bigint>
   +- == Initial Plan ==
      CometSort [c5#127, c18#140L, (c5 * c18)#338], [c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST]
      +- CometExchange rangepartitioning(c5#127 ASC NULLS FIRST, c18#140L ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, CometNativeShuffle, [plan_id=765]
         +- CometProject [c5#127, c18#140L, (c5 * c18)#338], [c5#127, c18#140L, (c5#127 * cast(c18#140L as float)) AS (c5 * c18)#338]
            +- CometScan [native_iceberg_compat] parquet [c5#127,c18#140L] Batched: true, DataFilters: [], Format: CometParquet, Location: InMemoryFileIndex(1 paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c5:float,c18:bigint>
   
   ```
   First difference at row 74:
   Spark: `0.0,NULL,NULL`
   Comet: `-0.0,-9147784522903433976,0.0`
   
   
   ### 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] Fuzz test failure related to overflow [datafusion-comet]

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #2622: Fuzz test failure related to overflow
URL: https://github.com/apache/datafusion-comet/issues/2622


-- 
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] Fuzz test failure related to overflow [datafusion-comet]

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

   This is related to sorting not working with negative zero


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