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