spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-26744) Support schema validation in File Source V2
Date Sat, 16 Feb 2019 09:22:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-26744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wenchen Fan resolved SPARK-26744.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 23714
[https://github.com/apache/spark/pull/23714]

> Support schema validation in File Source V2
> -------------------------------------------
>
>                 Key: SPARK-26744
>                 URL: https://issues.apache.org/jira/browse/SPARK-26744
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Major
>             Fix For: 3.0.0
>
>
> The internal API supportDataType in FileFormat validates the output/input schema before
task execution starts. So that we can avoid launching read/write tasks which would fail. Also,
users can see clean error messages.
> This PR is to implement the same internal API in the FileDataSourceV2 framework. Comparing
to FileFormat, FileDataSourceV2 has multiple layers. The API is added in two places:
> 1. Read path: the table schema is determined in TableProvider.getTable. The actual read
schema can be a subset of the table schema. This PR proposes to validate the actual read schema
in FileScan.
> 2. Write path: validate the actual output schema in FileWriteBuilder.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message