timothyw553 commented on code in PR #19227:
URL: https://github.com/apache/iceberg/pull/19227#discussion_r4795883741
##########
core/src/main/java/org/apache/iceberg/jdbc/JdbcUtil.java:
##########
@@ -355,12 +355,13 @@ enum SchemaVersion {
+ CATALOG_TABLE_VIEW_NAME
+ " WHERE "
+ CATALOG_NAME
- + " = ? AND "
- + " ("
+ + " = ? AND ("
+ TABLE_NAMESPACE
- + " = ? OR "
+ + " = ? OR ("
+ TABLE_NAMESPACE
- + " LIKE ? ESCAPE '!')"
+ + " LIKE ? ESCAPE '!' AND SUBSTR("
Review Comment:
here and in `GET_NAMESPACE_PROPERTIES_SQL` below, Java passes
`codePointCount`, while H2's `SUBSTR` counts UTF-16 units and PostgreSQL
`SQL_ASCII` counts bytes. for something like `😀.eu` or `café.eu`, could
`namespaceExists` for the parent falsely return `false` on those databases?
should we drop `LIMIT 1` and filter `LIKE` candidates in Java like
`listNamespaces`, or at least document this assumption if we want to keep the
SQL check?
--
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]