andygrove opened a new issue, #664:
URL: https://github.com/apache/datafusion-comet/issues/664
### Describe the bug
## SQL
```
SELECT c14, Signum(c14) AS x FROM test1 ORDER BY c14;
```
### Spark Plan
```
AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
*(2) Sort [c14#214 ASC NULLS FIRST], true, 0
+- AQEShuffleRead coalesced
+- ShuffleQueryStage 0
+- Exchange rangepartitioning(c14#214 ASC NULLS FIRST, 200),
ENSURE_REQUIREMENTS, [plan_id=26265]
+- *(1) Project [c14#214, SIGNUM(cast(c14#214 as double)) AS
x#27880]
+- *(1) ColumnarToRow
+- FileScan parquet [c14#214] Batched: true, DataFilters:
[], Format: Parquet, Location: InMemoryFileIndex(1
paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet],
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c14:int>
+- == Initial Plan ==
Sort [c14#214 ASC NULLS FIRST], true, 0
+- Exchange rangepartitioning(c14#214 ASC NULLS FIRST, 200),
ENSURE_REQUIREMENTS, [plan_id=26251]
+- Project [c14#214, SIGNUM(cast(c14#214 as double)) AS x#27880]
+- FileScan parquet [c14#214] Batched: true, DataFilters: [],
Format: Parquet, Location: InMemoryFileIndex(1
paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet],
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c14:int>
```
### Comet Plan
```
AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
*(2) Sort [c14#214 ASC NULLS FIRST], true, 0
+- AQEShuffleRead coalesced
+- ShuffleQueryStage 0
+- Exchange rangepartitioning(c14#214 ASC NULLS FIRST, 200),
ENSURE_REQUIREMENTS, [plan_id=26330]
+- *(1) ColumnarToRow
+- CometProject [c14#214, x#27886], [c14#214,
SIGNUM(cast(c14#214 as double)) AS x#27886]
+- CometScan parquet [c14#214] Batched: true, DataFilters:
[], Format: CometParquet, Location: InMemoryFileIndex(1
paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet],
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c14:int>
+- == Initial Plan ==
Sort [c14#214 ASC NULLS FIRST], true, 0
+- Exchange rangepartitioning(c14#214 ASC NULLS FIRST, 200),
ENSURE_REQUIREMENTS, [plan_id=26310]
+- CometProject [c14#214, x#27886], [c14#214, SIGNUM(cast(c14#214 as
double)) AS x#27886]
+- CometScan parquet [c14#214] Batched: true, DataFilters: [],
Format: CometParquet, Location: InMemoryFileIndex(1
paths)[file:/home/andy/git/apache/datafusion-comet/fuzz-testing/test1.parquet],
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c14:int>
```
First difference at row 102:
Spark: `0,0.0`
Comet: `0,1.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]