spark-instrumented-optimizer/external
Burak Yavuz f8d59572b0 [SPARK-29219][SQL] Introduce SupportsCatalogOptions for TableProvider
### What changes were proposed in this pull request?

This PR introduces `SupportsCatalogOptions` as an interface for `TableProvider`. Through `SupportsCatalogOptions`, V2 DataSources can implement the two methods `extractIdentifier` and `extractCatalog` to support the creation, and existence check of tables without requiring a formal TableCatalog implementation.

We currently don't support all SaveModes for DataSourceV2 in DataFrameWriter.save. The idea here is that eventually File based tables can be written with `DataFrameWriter.save(path)` will create a PathIdentifier where the name is `path`, and the V2SessionCatalog will be able to perform FileSystem checks at `path` to support ErrorIfExists and Ignore SaveModes.

### Why are the changes needed?

To support all Save modes for V2 data sources with DataFrameWriter. Since we can now support table creation, we will be able to provide partitioning information when first creating the table as well.

### Does this PR introduce any user-facing change?

Introduces a new interface

### How was this patch tested?

Will add tests once interface is vetted.

Closes #26913 from brkyvz/catalogOptions.

Lead-authored-by: Burak Yavuz <brkyvz@gmail.com>
Co-authored-by: Burak Yavuz <burak@databricks.com>
Signed-off-by: Burak Yavuz <brkyvz@gmail.com>
2020-01-09 11:18:16 -08:00
..
avro [SPARK-30428][SQL] File source V2: support partition pruning 2020-01-09 21:53:37 +08:00
docker [SPARK-28683][BUILD] Upgrade Scala to 2.12.10 2019-09-18 13:30:36 -07:00
docker-integration-tests [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
kafka-0-10 [SPARK-28144][SPARK-29294][SS][FOLLOWUP] Use SystemTime defined in Kafka Time interface 2019-12-24 11:39:03 +09:00
kafka-0-10-assembly [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
kafka-0-10-sql [SPARK-29219][SQL] Introduce SupportsCatalogOptions for TableProvider 2020-01-09 11:18:16 -08:00
kafka-0-10-token-provider [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
kinesis-asl [SPARK-30272][SQL][CORE] Remove usage of Guava that breaks in 27; replace with workalikes 2019-12-20 08:55:04 -06:00
kinesis-asl-assembly [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
spark-ganglia-lgpl [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00