[ https://issues.apache.org/jira/browse/SPARK-13271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141552#comment-15141552 ]
Apache Spark commented on SPARK-13271: -------------------------------------- User 'zsxwing' has created a pull request for this issue: https://github.com/apache/spark/pull/11154 > Better error message if 'path' is not specified > ----------------------------------------------- > > Key: SPARK-13271 > URL: https://issues.apache.org/jira/browse/SPARK-13271 > Project: Spark > Issue Type: Bug > Reporter: Shixiong Zhu > > As per discussion in > https://github.com/apache/spark/pull/11034#discussion_r52111238 > we should improve the error message: > {code} > scala> sqlContext.read.format("text").load() > java.util.NoSuchElementException: key not found: path > at scala.collection.MapLike$class.default(MapLike.scala:228) > at > org.apache.spark.sql.execution.datasources.CaseInsensitiveMap.default(ddl.scala:159) > at scala.collection.MapLike$class.apply(MapLike.scala:141) > at > org.apache.spark.sql.execution.datasources.CaseInsensitiveMap.apply(ddl.scala:159) > at > org.apache.spark.sql.execution.datasources.ResolvedDataSource$$anonfun$10.apply(ResolvedDataSource.scala:200) > at > org.apache.spark.sql.execution.datasources.ResolvedDataSource$$anonfun$10.apply(ResolvedDataSource.scala:200) > at scala.Option.getOrElse(Option.scala:121) > at > org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:200) > at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:129) > ... 49 elided > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org