This is an automated email from the ASF dual-hosted git repository.

gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new 7a0eafbd fix(rest): use correct order to merge config (#483)
7a0eafbd is described below

commit 7a0eafbd6dbbc65af7a0e13a47514f82d1e2937e
Author: Jiajia Li <[email protected]>
AuthorDate: Sun Jan 4 14:42:27 2026 +0800

    fix(rest): use correct order to merge config (#483)
---
 src/iceberg/catalog/rest/rest_catalog.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iceberg/catalog/rest/rest_catalog.cc 
b/src/iceberg/catalog/rest/rest_catalog.cc
index 2c28691b..cbd38c5a 100644
--- a/src/iceberg/catalog/rest/rest_catalog.cc
+++ b/src/iceberg/catalog/rest/rest_catalog.cc
@@ -117,7 +117,7 @@ Result<std::shared_ptr<RestCatalog>> RestCatalog::Make(
   ICEBERG_ASSIGN_OR_RAISE(auto server_config, FetchServerConfig(*paths, 
config));
 
   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));
 
   std::unordered_set<Endpoint> endpoints;
   if (!server_config.endpoints.empty()) {

Reply via email to