DG47 commented on PR #4164:
URL: https://github.com/apache/iceberg-python/pull/4164#issuecomment-6723541451
@Fokko @kevinjqliu, this one is ready for a review.
`SqlCatalog.namespace_exists` uses `LIKE '<namespace>.%'` to detect child
namespaces, and SQLite evaluates `LIKE` case-insensitively, so with only
`sales.eu` in the catalog `namespace_exists("SALES")` returned True and
`create_table("SALES.orders")` succeeded in a namespace that does not exist
(closes #4163). The fix keeps the `LIKE` filter and re-checks the matched names
with a case-sensitive prefix comparison in Python, the same way
`list_namespaces` already does.
--
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]