vigneshsiva11 commented on PR #3278:
URL:
https://github.com/apache/datafusion-comet/pull/3278#issuecomment-3871594470
Thanks for checking this. Below is a minimal snippet to reproduce the
original issue.
Reproduction snippet (Spark SQL):
val df = spark.createDataFrame(Seq(
("2024-01-10", "2024-01-01"),
("2024-01-05", "2024-01-01")
)).toDF("end", "start")
.selectExpr(
"datediff(cast(end as timestamp), cast(start as timestamp)) as diff"
)
df.collect()
When the timestamp columns are dictionary-encoded (as in Parquet), this used
to trigger an array length mismatch inside the Comet native datediff
implementation, resulting in a CometNativeException.
--
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]