jurossiar opened a new issue, #10213:
URL: https://github.com/apache/iceberg/issues/10213

   ### Apache Iceberg version
   
   1.4.2
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   We are using version 1.4.2 but we are planning to upgrade to 1.5.0 and I 
confirmed that the problem is still there.
   
   Problem: When you have 2 namespaces with similar names
   E.g.: 
   namespaces:
   - test.auto_rag
   - test_auto_rag
   
   API CALL: http://<iceberg-rest-catalog>/v1/namespaces?parent=test_auto_rag
   
   Response:
   ```
   {
       "namespaces": [
           [
               "test",
               "auto_rag"
           ]
       ]
   }
   ```
   That is incorrect. `test_auto_rag` namespace doesn't have children 
namespaces.
   
   In a quick look the issue seems to be with the behavior of this query with 
postgres:
   - 
https://github.com/apache/iceberg/blob/866021d7d34f274349ce7de1f29d113395e7f28c/core/src/main/java/org/apache/iceberg/jdbc/JdbcCatalog.java#L428
   - 
https://github.com/apache/iceberg/blob/866021d7d34f274349ce7de1f29d113395e7f28c/core/src/main/java/org/apache/iceberg/jdbc/JdbcUtil.java#L340
   
   <img width="488" alt="image" 
src="https://github.com/apache/iceberg/assets/48991881/ba6a162e-b611-4cab-98e9-0cdbf07493ce";>
   
   
   


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