Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ class CastSuite extends SparkFunSuite with ExpressionEvalHelper {
}

test("SPARK-22500: cast for struct should not generate codes beyond 64KB") {
val N = 250
val N = 25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 25 big enough to reproduce the bug of SPARK-22595?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I confirmed that 25 can reproduce the bug of SPARK-22500 by reverting the change of #19730. For example, 20 cannot reproduce the bug.


val fromInner = new StructType(
(1 to N).map(i => StructField(s"s$i", DoubleType)).toArray)
Expand Down