keypointt commented on a change in pull request #25291: [SPARK-28554][SQL]
implement basic catalog functionalities for JDBC v2 with a DS v1 fallback API
URL: https://github.com/apache/spark/pull/25291#discussion_r316408187
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/sources/interfaces.scala
##########
@@ -313,3 +316,27 @@ trait InsertableRelation {
trait CatalystScan {
def buildScan(requiredColumns: Seq[Attribute], filters: Seq[Expression]):
RDD[Row]
}
+
+/**
+ * A special `TableCatalog` which returns `DataSourceV1Table`.
+ *
+ * @since 3.0.0
+ */
+@Experimental
+@Unstable
+trait DataSourceV1TableCatalog extends TableCatalog
+
+/**
+ * A special Data Source V2 `Table`, which doesn't need to implement the
read/write capabilities.
+ * Spark will fallback the read/write requests to the v1 relation.
Review comment:
consistent with upper case for wording `V1` and `V2`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]