You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/08 06:55:38 UTC
[GitHub] [spark] zhengruifeng commented on a diff in pull request #37127: [SPARK-39716][R] Make currentDatabase/setCurrentDatabase/listDatabases in SparkR support 3L namespace
zhengruifeng commented on code in PR #37127:
URL: https://github.com/apache/spark/pull/37127#discussion_r916516842
##########
R/pkg/tests/fulltests/test_sparkSQL.R:
##########
@@ -4011,6 +4011,17 @@ test_that("Collect on DataFrame when NAs exists at the top of a timestamp column
expect_equal(class(ldf3$col3), c("POSIXct", "POSIXt"))
})
+test_that("catalog APIs, listCatalogs, setCurrentCatalog, currentCatalog", {
+ expect_equal(currentCatalog(), "spark_catalog")
+ expect_error(setCurrentCatalog("spark_catalog"), NA)
+ expect_error(setCurrentCatalog("zxwtyswklpf"),
+ paste0("Error in setCurrentCatalog : ",
+ "org.apache.spark.sql.connector.catalog.CatalogNotFoundException: ",
+ "Catalog 'zxwtyswklpf' plugin class not found: ",
+ "spark.sql.catalog.zxwtyswklpf is not defined"))
+ catalogs <- collect(listCatalogs())
Review Comment:
catalogs is empty here, see https://github.com/apache/spark/pull/36904#discussion_r905933255
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org