Github user markusb79 commented on a diff in the pull request:
https://github.com/apache/spark/pull/16648#discussion_r105496069
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/DataFrameComplexTypeSuite.scala ---
@@ -64,6 +65,24 @@ class DataFrameComplexTypeSuite extends QueryTest with
SharedSQLContext {
val ds100_5 = Seq(S100_5()).toDS()
ds100_5.rdd.count
}
+
+ test("SPARK-18016 Constant Pool Past Limit for Wide/Nested Dataset") {
+ val schema = StructType(
+ (0 to 10000).map(n â StructField(s"column_$n", StringType))
+ )
+
+ val values = schema.map(_ â null)
+ val rows = spark.sparkContext.parallelize(Seq(Row(values:_*)))
+ val frame = spark.sqlContext.createDataFrame(rows, schema)
+
+ frame.show()
+// .write
--- End diff --
Might be good to remove these commented lines before the merge.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]