You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhou Zach (Jira)" <ji...@apache.org> on 2019/09/06 05:54:00 UTC
[jira] [Created] (SPARK-29005) build failed:
sparkSession.createDataFrame[Int](Seq(1,2))
Zhou Zach created SPARK-29005:
---------------------------------
Summary: build failed: sparkSession.createDataFrame[Int](Seq(1,2))
Key: SPARK-29005
URL: https://issues.apache.org/jira/browse/SPARK-29005
Project: Spark
Issue Type: Question
Components: Spark Core
Affects Versions: 2.3.0
Reporter: Zhou Zach
Intellij Idea report:
Error:(31, 18) type arguments [Int] conform to the bounds of none of the overloaded alternatives of
value createDataFrame: [A <: Product](data: Seq[A])(implicit evidence$3: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame <and> [A <: Product](rdd: org.apache.spark.rdd.RDD[A])(implicit evidence$2: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame
sparkSession.createDataFrame[Int](Seq(1,2))
Error:(31, 18) wrong number of type parameters for overloaded method value createDataFrame with alternatives:
(data: java.util.List[_],beanClass: Class[_])org.apache.spark.sql.DataFrame <and>
(rdd: org.apache.spark.api.java.JavaRDD[_],beanClass: Class[_])org.apache.spark.sql.DataFrame <and>
(rdd: org.apache.spark.rdd.RDD[_],beanClass: Class[_])org.apache.spark.sql.DataFrame <and>
(rows: java.util.List[org.apache.spark.sql.Row],schema: org.apache.spark.sql.types.StructType)org.apache.spark.sql.DataFrame <and>
(rowRDD: org.apache.spark.api.java.JavaRDD[org.apache.spark.sql.Row],schema: org.apache.spark.sql.types.StructType)org.apache.spark.sql.DataFrame <and>
(rowRDD: org.apache.spark.rdd.RDD[org.apache.spark.sql.Row],schema: org.apache.spark.sql.types.StructType)org.apache.spark.sql.DataFrame <and>
[A <: Product](data: Seq[A])(implicit evidence$3: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame <and>
[A <: Product](rdd: org.apache.spark.rdd.RDD[A])(implicit evidence$2: reflect.runtime.universe.TypeTag[A])org.apache.spark.sql.DataFrame
sparkSession.createDataFrame[Int](Seq(1,2))
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org