aboutsummaryrefslogtreecommitdiff
path: root/docs/sql-programming-guide.md
diff options
context:
space:
mode:
authormayuanwen <mayuanwen@qiyi.com>2015-11-17 11:15:46 -0800
committerMichael Armbrust <michael@databricks.com>2015-11-17 11:15:46 -0800
commite8833dd12c71b23a242727e86684d2d868ff84b3 (patch)
treef6173a0fbb1a7c2b54d5778a238f4a52dff40457 /docs/sql-programming-guide.md
parent21fac5434174389e8b83a2f11341fa7c9e360bfd (diff)
downloadspark-e8833dd12c71b23a242727e86684d2d868ff84b3.tar.gz
spark-e8833dd12c71b23a242727e86684d2d868ff84b3.tar.bz2
spark-e8833dd12c71b23a242727e86684d2d868ff84b3.zip
[SPARK-11679][SQL] Invoking method " apply(fields: java.util.List[StructField])" in "StructType" gets ClassCastException
In the previous method, fields.toArray will cast java.util.List[StructField] into Array[Object] which can not cast into Array[StructField], thus when invoking this method will throw "java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.apache.spark.sql.types.StructField;" I directly cast java.util.List[StructField] into Array[StructField] in this patch. Author: mayuanwen <mayuanwen@qiyi.com> Closes #9649 from jackieMaKing/Spark-11679.
Diffstat (limited to 'docs/sql-programming-guide.md')
0 files changed, 0 insertions, 0 deletions