Ryan Blue created SPARK-23398:
---------------------------------
Summary: DataSourceV2 should provide a way to get the source 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
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: [email protected]
For additional commands, e-mail: [email protected]