Commit 3a21ce9
authored
feat(catalog): implement catalog loader for s3tables (#1598)
## Which issue does this PR close?
- Closes #1256
## What changes are included in this PR?
### Catalog Registry Refactor
* Introduced a static `CATALOG_REGISTRY` mapping catalog type strings
(e.g., `"rest"`, `"s3tables"`) to their corresponding builder factory
closures.
* Eliminates hard-coded catalog type handling in `load()` and
centralizes catalog registration logic.
* Makes it easier to add new catalog implementations in the future
without touching core loader logic.
### New S3 Tables Catalog Support
* Implemented an **S3 Tables Catalog Builder**.
* Added the `"s3tables"` catalog type to the registry in
`crates/catalog/loader`.
* Updated workspace configuration to include the new
`iceberg-catalog-s3tables` crate.
* Added comprehensive example usage in the crate documentation.
### Hive metastore
* The `hive_metastore` was upgraded from `0.1.0` to fix after rebasing
your S3Tables feature branch because the HMS catalog and S3Tables
catalog share common Rust dependencies (pilota, volo-thrift, etc.)
* These shared dependencies created version conflicts that manifested as
"derivative attribute compilation errors."
Upgrading to hive_metastore `0.2.0` resolved these transitive dependency
conflicts.
## Are these changes tested?
Yes.
* Added new unit tests for the S3 Tables catalog.
* Expanded loader tests to:
* Verify loading of supported catalogs via the registry.
* Validate improved error messages listing supported catalog types.
* Test the new ergonomic `CatalogLoader` API for both `"rest"` and
`"s3tables"`.1 parent fa5f2ed commit 3a21ce9
File tree
8 files changed
+1523
-919
lines changed- crates/catalog
- loader
- src
- rest/src
- s3tables
- src
8 files changed
+1523
-919
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | | - | |
| 126 | + | |
125 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
25 | 41 | | |
26 | 42 | | |
27 | 43 | | |
| |||
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| 63 | + | |
47 | 64 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
52 | 73 | | |
53 | | - | |
54 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
55 | 102 | | |
56 | 103 | | |
57 | 104 | | |
58 | 105 | | |
59 | 106 | | |
60 | 107 | | |
61 | 108 | | |
62 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
63 | 131 | | |
64 | 132 | | |
65 | 133 | | |
| |||
83 | 151 | | |
84 | 152 | | |
85 | 153 | | |
86 | | - | |
87 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
88 | 158 | | |
89 | | - | |
90 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
91 | 164 | | |
92 | | - | |
| 165 | + | |
93 | 166 | | |
94 | 167 | | |
95 | | - | |
96 | | - | |
| 168 | + | |
| 169 | + | |
97 | 170 | | |
98 | 171 | | |
99 | 172 | | |
| |||
102 | 175 | | |
103 | 176 | | |
104 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
105 | 210 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
| 702 | + | |
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
| 753 | + | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
0 commit comments