dongjoon-hyun commented on a change in pull request #34845:
URL: https://github.com/apache/spark/pull/34845#discussion_r766156824
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala
##########
@@ -912,4 +912,23 @@ abstract class SchemaPruningSuite
}
}
}
+
+ test("SPARK-37577: Fix ClassCastException: ArrayType cannot be cast to
StructType") {
+ import testImplicits._
+
+ val schema = StructType(Seq(
+ StructField("o", ArrayType(StructType(
+ Seq(StructField("s", StringType, false),
+ StructField("b", ArrayType(StructType(
+ Seq(StructField("e", StringType, false))), true), false)
Review comment:
Can we use more intrusive field names? `o`, `s`, `b`, `e` looks a little
confusing.
--
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]