Skip to content

Commit a0995d6

Browse files
committed
Fix
1 parent 5eebe19 commit a0995d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/PushFoldableIntoBranchesSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class PushFoldableIntoBranchesSuite
223223
assertEquivalent(EqualTo(Literal(4), caseWhen), FalseLiteral)
224224
}
225225

226-
test("Push down cast through If/CaseWhen") {
226+
test("SPARK-33848: Push down cast through If/CaseWhen") {
227227
assertEquivalent(If(a, Literal(2), Literal(3)).cast(StringType),
228228
If(a, Literal("2"), Literal("3")))
229229
assertEquivalent(If(a, b, Literal(3)).cast(StringType),
@@ -242,14 +242,14 @@ class PushFoldableIntoBranchesSuite
242242
CaseWhen(Seq((a, b)), Some(b + 1)).cast(StringType))
243243
}
244244

245-
test("Push down abs through If/CaseWhen") {
245+
test("SPARK-33848: Push down abs through If/CaseWhen") {
246246
assertEquivalent(Abs(If(a, Literal(-2), Literal(-3))), If(a, Literal(2), Literal(3)))
247247
assertEquivalent(
248248
Abs(CaseWhen(Seq((a, Literal(-1))), Some(Literal(-3)))),
249249
CaseWhen(Seq((a, Literal(1))), Some(Literal(3))))
250250
}
251251

252-
test("Push down cast with binary expression through If/CaseWhen") {
252+
test("SPARK-33848: Push down cast with binary expression through If/CaseWhen") {
253253
assertEquivalent(EqualTo(If(a, Literal(2), Literal(3)).cast(StringType), Literal("4")),
254254
FalseLiteral)
255255
assertEquivalent(

0 commit comments

Comments
 (0)