comphead commented on issue #2793:
URL:
https://github.com/apache/datafusion-comet/issues/2793#issuecomment-3549329583
Repro
```
test("make decimal") {
withSQLConf(
CometConf.COMET_EXEC_ENABLED.key -> "true",
SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
CometConf.COMET_ENABLED.key -> "true",
CometConf.COMET_EXPLAIN_FALLBACK_ENABLED.key -> "true",
"spark.sql.ansi.enabled" -> "true",
"spark.comet.expression.Sum.allowIncompatible" -> "true",
CometConf.COMET_NATIVE_SCAN_IMPL.key -> "native_iceberg_compat",
"spark.sql.optimizer.excludedRules" ->
"org.apache.spark.sql.catalyst.optimizer.ConstantFolding") {
testSingleLineQuery(
"""
|select cast(123456 as decimal(6, 0)) a
|""".stripMargin,
"select sum(a) from tbl",
debugCometDF = df => df.explain("formatted"))
}
}
== Results ==
!== Correct Answer - 1 == == Spark Answer - 1 ==
struct<sum(a):decimal(16,0)> struct<sum(a):decimal(16,0)>
![123456] [null]
```
--
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]