rest: build resource paths from final config#482
Conversation
21775d9 to
f2213de
Compare
|
|
||
| std::unique_ptr<RestCatalogProperties> final_config = RestCatalogProperties::FromMap( | ||
| MergeConfigs(server_config.overrides, config.configs(), server_config.defaults)); | ||
| MergeConfigs(server_config.defaults, config.configs(), server_config.overrides)); |
There was a problem hiding this comment.
Thanks for fixing this! Let's not complicate the PR. I think this change can be added without the test.
There was a problem hiding this comment.
Thanks for fixing this! Let's not complicate the PR. I think this change can be added without the test.
Yes, i create a new pull request for it.https://github.com/apache/iceberg-cpp/pull/483/files
f2213de to
d74a7dc
Compare
d74a7dc to
72a2ef9
Compare
SetBaseUri removed. Do you mean build a ResourcePaths to get config? |
Well, sorry—I might not have put it clearly. I just wanted to say that I agree with your changes to |
|
|
||
| /// \brief Get the /v1/config endpoint path. | ||
| Result<std::string> Config() const; | ||
| static Result<std::string> Config(const std::string& base_uri); |
There was a problem hiding this comment.
It sounds good to remove SetBaseUri. However, it leads to confusion to make this a static function. I'd suggest to revert this function as you have created a new ResourcePaths based on the server config.
There was a problem hiding this comment.
It sounds good to remove
SetBaseUri. However, it leads to confusion to make this a static function. I'd suggest to revert this function as you have created a new ResourcePaths based on the server config.
it's reasonable, i've reverted.
aab3c9b to
3edf52c
Compare
wgtmac
left a comment
There was a problem hiding this comment.
Thanks for fixing this @plusplusjiajia and for the review @HeartLinked
Build ResourcePaths using final URI + prefix after fetching server config: ref:https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java#L233