kevinjqliu commented on code in PR #1671:
URL: https://github.com/apache/iceberg-python/pull/1671#discussion_r1958551105


##########
pyiceberg/catalog/sql.py:
##########
@@ -497,10 +497,16 @@ def commit_table(
     def _namespace_exists(self, identifier: Union[str, Identifier]) -> bool:
         namespace_tuple = Catalog.identifier_to_tuple(identifier)
         namespace = Catalog.namespace_to_string(namespace_tuple, 
NoSuchNamespaceError)
+        namespace_starts_with = namespace.replace("!", "!!").replace("_", 
"!_").replace("%", "!%") + ".%"

Review Comment:
   `!` is used to escape literals such as `!`, `_`, and `%`



-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to