maropu commented on a change in pull request #25831: [SPARK-29122][SQL]
Propagate all the SQL conf to executors in SQLQueryTestSuite
URL: https://github.com/apache/spark/pull/25831#discussion_r326518243
##########
File path:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/AggregationQuerySuite.scala
##########
@@ -1018,6 +1018,16 @@ abstract class AggregationQuerySuite extends QueryTest
with SQLTestUtils with Te
val agg2 = agg1.groupBy($"text").agg(sum($"avg_res"))
checkAnswer(agg2, Row("a", BigDecimal("11.9999999994857142860000")))
}
+
+ test("SPARK-29122: hash-based aggregates for unfixed-length decimals in the
interpreter mode") {
+ withSQLConf(SQLConf.WHOLESTAGE_CODEGEN_ENABLED.key -> "false",
+ SQLConf.CODEGEN_FACTORY_MODE.key ->
CodegenObjectFactoryMode.NO_CODEGEN.toString) {
+ withTable("t") {
+ spark.range(3).selectExpr("CAST(id AS decimal(38, 0))
a").write.saveAsTable("t")
Review comment:
ah, ok. I'll update now.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]