Skip to content

Commit 152dbd4

Browse files
committed
Update error message.
1 parent 1466256 commit 152dbd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ private[sql] object JsonRDD extends Logging {
308308
case list: java.util.List[_] => scalafy(list).asInstanceOf[Seq[Map[String, Any]]]
309309
case _ =>
310310
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.")
311+
s"Failed to parse record $record. Please make sure that each line of the file " +
312+
"(or each string in the RDD) is a valid JSON object or an array of JSON objects.")
313313
}
314314

315315
parsed

0 commit comments

Comments
 (0)