andygrove commented on issue #146:
URL:
https://github.com/apache/datafusion-comet/issues/146#issuecomment-2776015004
A better test would be something like this:
```scala
test("cast LongType to TimestampType") {
// input value is interpreted as milliseconds but will be cast to
microseconds
val min = -9223372036854775L
val max = 9223372036854775L
val values = gen.generateLongs(dataSize)
.filter(x => x >= min && x <= max) ++ Seq(min, max)
castTest(withNulls(values).toDF("a"), DataTypes.TimestampType)
}
```
However the min value here is actually causing an overflow in Spark and I am
not sure why so this needs some more research.
--
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]