We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1466256 commit 152dbd4Copy full SHA for 152dbd4
sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala
@@ -308,8 +308,8 @@ private[sql] object JsonRDD extends Logging {
308
case list: java.util.List[_] => scalafy(list).asInstanceOf[Seq[Map[String, Any]]]
309
case _ =>
310
sys.error(
311
- s"Failed to parse record $record. Please make sure that " +
312
- "every record in the dataset is a JSON object or an array of JSON objects.")
+ s"Failed to parse record $record. Please make sure that each line of the file " +
+ "(or each string in the RDD) is a valid JSON object or an array of JSON objects.")
313
}
314
315
parsed
0 commit comments