spark-instrumented-optimizer/sql/core
Maxim Gekk 17449a2e6b [SPARK-25952][SQL] Passing actual schema to JacksonParser
## What changes were proposed in this pull request?

The PR fixes an issue when the corrupt record column specified via `spark.sql.columnNameOfCorruptRecord` or JSON options `columnNameOfCorruptRecord` is propagated to JacksonParser, and returned row breaks an assumption in `FailureSafeParser` that the row must contain only actual data. The issue is fixed by passing actual schema without the corrupt record field into `JacksonParser`.

## How was this patch tested?

Added a test with the corrupt record column in the middle of user's schema.

Closes #22958 from MaxGekk/from_json-corrupt-record-schema.

Authored-by: Maxim Gekk <max.gekk@gmail.com>
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
2018-11-08 14:48:23 +08:00
..
benchmarks [SPARK-25676][FOLLOWUP][BUILD] Fix Scala 2.12 build error 2018-11-08 05:54:48 +00:00
src [SPARK-25952][SQL] Passing actual schema to JacksonParser 2018-11-08 14:48:23 +08:00
pom.xml [SPARK-25946][BUILD] Upgrade ASM to 7.x to support JDK11 2018-11-06 05:38:59 +00:00