Github user jmchung commented on the issue: https://github.com/apache/spark/pull/18865 To @viirya and @gatorsmile, I made some modifications as follows: 1. move the check of `_corrupt_record` out of the function block to get fast fail in driver instead of executor side. 2. `sparkContext.parallelize(data, 1)` to `sparkContext.parallelize(Seq(data), 1)`; without `Seq` the data will be stored with a char for each line. 3. `schema` is still required to load the json file in this test case. Would it be that infer schema did not contain `_corrupt_record`? BTW, the previous test case will get the following schema: ``` root |-- _corrupt_record: string (nullable = true) ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org