coderfender commented on PR #3083:
URL:
https://github.com/apache/datafusion-comet/pull/3083#issuecomment-3775759839
There is a mismatch in the error message thrown by spark vs comet for a cast
test from StringType to DecimalType(2,2) . I will raise a new PR to fix that
error message .
Steps to Reproduce :
```
test("cast StringType to DecimalType(2,2) -test error message") {
withSQLConf(CometConf.getExprAllowIncompatConfigKey(classOf[Cast]) ->
"true") {
println("testing with simple input")
val values = Seq(" 3").toDF("a")
Seq(true, false).foreach(ansiEnabled =>
castTest(values, DataTypes.createDecimalType(2, 2), testAnsi =
ansiEnabled))
}
}
```
--
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]