Zouxxyy commented on code in PR #6384:
URL: https://github.com/apache/paimon/pull/6384#discussion_r2425123548


##########
paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/utils/CatalogUtils.java:
##########
@@ -60,15 +60,18 @@
 /** Utils of catalog. */
 public class CatalogUtils {
 
-    public static void checkNamespace(String[] namespace) {
+    public static void checkNamespace(String[] namespace, String catalogName) {
         checkArgument(
                 namespace.length == 1,
-                "Paimon only support single namespace, but got %s",
+                "Current catalog is %s, catalog %s does not exist or Paimon 
only support single namespace, but got %s",

Review Comment:
   Please add a test case for this



##########
paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/utils/CatalogUtils.java:
##########
@@ -60,15 +60,18 @@
 /** Utils of catalog. */
 public class CatalogUtils {
 
-    public static void checkNamespace(String[] namespace) {
+    public static void checkNamespace(String[] namespace, String catalogName) {

Review Comment:
   Can you try `spark.sessionState.catalogManager.currentCatalog.name` to get 
catalog name



-- 
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]

Reply via email to