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

Ryan Blue resolved SPARK-23398.
-------------------------------
    Resolution: Fixed

SPARK-25528 adds a Table interface that can report its schema.

> DataSourceV2 should provide a way to get a source's schema.
> -----------------------------------------------------------
>
>                 Key: SPARK-23398
>                 URL: https://issues.apache.org/jira/browse/SPARK-23398
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Ryan Blue
>            Priority: Major
>
> To validate writes with DataSourceV2, the planner needs to get a source's 
> schema. The current API has no direct way to get that schema. SPARK-23321 
> instantiates a reader to get the schema, but sources are not required to 
> implement {{ReadSupport}} or {{ReadSupportWithSchema}}. V2 should either add 
> a method to get the schema of a source, or require sources implement 
> {{ReadSupport}}.



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

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

Reply via email to