Commit 47613d3
authored
fix: glue drop_namespace to check non-iceberg tables (#2083)
# Rationale for this change
This PR is adding a check for all tables in the GlueCatalog instead of
just iceberg tables.
GlueCatalog allows users to store other table formats under the same
database. Using the catalog's `list_tables()` call filters out
non-Iceberg table types, which avoids the proper Iceberg
`NamespaceNotEmptyError` and instead returns a generic Glue SDK error.
This change aligns with the behavior in the java implementation:
-
https://github.com/apache/iceberg/blob/main/aws/src/main/java/org/apache/iceberg/aws/glue/GlueCatalog.java#L538-L571
# Are these changes tested?
Tested locally with Glue Catalog
# Are there any user-facing changes?
Yes new exception message when a `drop_namespace()` call is made against
a database with non-iceberg tables.1 parent 1fe9697 commit 47613d3
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
692 | 693 | | |
693 | 694 | | |
694 | 695 | | |
695 | | - | |
696 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
697 | 703 | | |
698 | 704 | | |
699 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
551 | 563 | | |
552 | 564 | | |
553 | 565 | | |
| |||
0 commit comments