Open ericsun95 opened 3 years ago
This is the doc describing datasource v2 in general. Implementations should at least use ReadSupport or WriteSupport interfaces for readable or writable data sources, respectively. https://jaceklaskowski.gitbooks.io/mastering-spark-sql/content/spark-sql-DataSourceV2.html
ReadSupport defines a single createReader method that creates a DataSourceReader.
DataSourceReader createReader(DataSourceOptions options)
DataSourceReader createReader(StructType schema, DataSourceOptions options)
Add a initial support for DataSourceV2. Will upgrade more for the other relevant optimization.
Explore DataSourceV2 API and come up with a plan.