We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8acb912 commit 569d741Copy full SHA for 569d741
1 file changed
spark/src/test/scala/org/apache/comet/CometCastSuite.scala
@@ -690,8 +690,9 @@ class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
690
// not attempt native execution if such a value ever reaches the planner.
691
// Note: DecimalType(7, -2) must be constructed while config=true, because the
692
// constructor itself checks the config and throws if negative scale is disallowed.
693
- val negScaleType = withSQLConf("spark.sql.legacy.allowNegativeScaleOfDecimal" -> "true") {
694
- DecimalType(7, -2)
+ var negScaleType: DecimalType = null
+ withSQLConf("spark.sql.legacy.allowNegativeScaleOfDecimal" -> "true") {
695
+ negScaleType = DecimalType(7, -2)
696
}
697
withSQLConf("spark.sql.legacy.allowNegativeScaleOfDecimal" -> "false") {
698
assert(
0 commit comments