Describe the bug
I discovered this bug using Comet Fuzz.
SELECT Log2(c4) FROM test0
[ERROR] Spark and Comet produced different results.
Spark Plan
*(1) Project [LOG2(cast(c4#4 as double)) AS LOG2(c4)#13927]
+- *(1) ColumnarToRow
+- FileScan parquet [c4#4] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/Users/andy/git/apple/comet-fuzz/test0.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c4:tinyint>
Comet Plan
*(1) ColumnarToRow
+- CometProject [LOG2(c4)#13931], [LOG2(cast(c4#4 as double)) AS LOG2(c4)#13931]
+- CometScan parquet [c4#4] Batched: true, DataFilters: [], Format: CometParquet, Location: InMemoryFileIndex(1 paths)[file:/Users/andy/git/apple/comet-fuzz/test0.parquet], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<c4:tinyint>
Results
Spark produced 200 rows and Comet produced 200 rows.
First difference at row 0:
Spark: [1.584962500721156]
Comet: [-Infinity]
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response
Describe the bug
I discovered this bug using Comet Fuzz.
[ERROR] Spark and Comet produced different results.
Spark Plan
Comet Plan
Results
Spark produced 200 rows and Comet produced 200 rows.
First difference at row 0:
Spark:
[1.584962500721156]Comet:
[-Infinity]Steps to reproduce
No response
Expected behavior
No response
Additional context
No response