You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "jurossiar (via GitHub)" <gi...@apache.org> on 2024/04/24 15:17:00 UTC
[I] Iceberg rest catalog with postgres - List namespaces with parent return wrong childs [iceberg]
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-unsubscribe@iceberg.apache.org.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
Re: [I] Iceberg rest catalog with postgres - List namespaces with parent returns wrong children namespaces [iceberg]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko closed issue #10213: Iceberg rest catalog with postgres - List namespaces with parent returns wrong children namespaces
URL: https://github.com/apache/iceberg/issues/10213
--
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
Re: [I] Iceberg rest catalog with postgres - List namespaces with parent returns wrong children namespaces [iceberg]
Posted by "jurossiar (via GitHub)" <gi...@apache.org>.
jurossiar commented on issue #10213:
URL: https://github.com/apache/iceberg/issues/10213#issuecomment-2152264490
See: https://github.com/apache/iceberg/issues/10443#issuecomment-2152262679
I duplicated the issue given I forgot that i created this one with a better analysis.
I think that LIKE must be replaced by equal (=).
--
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