You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/06/02 18:49:15 UTC

[GitHub] [iceberg] kbendick commented on pull request #4942: [Spark][Test]: Check before creating default namespace to avoid noisy AlreadyExistsExceptions in test logs

kbendick commented on PR #4942:
URL: https://github.com/apache/iceberg/pull/4942#issuecomment-1145199927

   > @sumeetgajjar: Could you please check the failures?
   > 
   > I am comfortable with this:
   > 
   > ```
   >       Namespace defaultNamespace = Namespace.of("default");
   >       if (!catalog.namespaceExists(defaultNamespace)) {
   >         catalog.createNamespace(defaultNamespace);
   >       }
   > ```
   > 
   > I am not entirely sure about these:
   > 
   > ```
   >     boolean createNamespace = isHadoopCatalog || spark.sql("SHOW NAMESPACES IN " + catalogName)
   >         .filter("namespace = 'default'")
   >         .isEmpty();
   >     if (createNamespace) {
   >       sql("CREATE NAMESPACE IF NOT EXISTS " + catalogName + ".default");
   >     }
   > ```
   
   Ditto. I also have concerns about the additional usage of `spark.sql` (and the general complexity of that part). I also consider this to be a normal-ish log, along the lines of "illegal reflective access" and similar things.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org