amaliujia commented on code in PR #47723:
URL: https://github.com/apache/spark/pull/47723#discussion_r1715737666
##########
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala:
##########
@@ -3662,3 +3682,52 @@ class SimpleDelegatingCatalog extends
DelegatingCatalogExtension {
super.createTable(ident, columns, partitions, newProps)
}
}
+
+
+class V2CatalogSupportBuiltinDataSource extends DelegatingCatalogExtension {
Review Comment:
Ok then I just choose to extend `InMemoryCatalog` and test.
##########
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala:
##########
@@ -3627,6 +3629,24 @@ class DataSourceV2SQLSuiteV1Filter
}
}
+ test("SPARK-49211: V2 Catalog can also support built-in data sources") {
+ val fullTablename = "testcat3.default.t"
+ withTable(fullTablename) {
+ sql(
+ "CREATE TABLE " + fullTablename + " (name STRING) USING PARQUET
LOCATION '/tmp/test_path'")
Review Comment:
sure. moved to only register for the test case.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]