Skip to content

Commit 0e44a35

Browse files
committed
Fix after merge
1 parent 9b9e841 commit 0e44a35

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/Databases/DataLake/DatabaseDataLake.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ std::shared_ptr<DataLake::ICatalog> DatabaseDataLake::getCatalog() const
267267
google_adc_client_secret,
268268
google_adc_refresh_token,
269269
google_adc_quota_project_id,
270+
settings[DatabaseDataLakeSetting::namespaces].value,
270271
Context::getGlobalContextInstance());
271272
break;
272273
}

src/Databases/DataLake/RestCatalog.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,9 @@ OneLakeCatalog::OneLakeCatalog(
333333
const std::string & auth_scope_,
334334
const std::string & oauth_server_uri_,
335335
bool oauth_server_use_request_body_,
336+
const std::string & namespaces_,
336337
DB::ContextPtr context_)
337-
: RestCatalog(warehouse_, base_url_, auth_scope_, oauth_server_uri_, oauth_server_use_request_body_, context_)
338+
: RestCatalog(warehouse_, base_url_, auth_scope_, oauth_server_uri_, oauth_server_use_request_body_, namespaces_, context_)
338339
, tenant_id(onelake_tenant_id)
339340
{
340341
client_id = onelake_client_id;
@@ -457,8 +458,9 @@ BigLakeCatalog::BigLakeCatalog(
457458
const std::string & google_adc_client_secret_,
458459
const std::string & google_adc_refresh_token_,
459460
const std::string & google_adc_quota_project_id_,
461+
const std::string & namespaces_,
460462
DB::ContextPtr context_)
461-
: RestCatalog(warehouse_, base_url_, "", "", false, context_)
463+
: RestCatalog(warehouse_, base_url_, "", "", false, namespaces_, context_)
462464
, google_project_id(google_project_id_)
463465
, google_service_account(google_service_account_)
464466
, google_metadata_service(google_metadata_service_)

src/Databases/DataLake/RestCatalog.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class RestCatalog : public ICatalog, public DB::WithContext
143143
bool allow_tables = false;
144144
};
145145

146-
private:
146+
protected:
147147
AllowedNamespaces allowed_namespaces;
148148

149149
Poco::Net::HTTPBasicCredentials credentials{};
@@ -202,6 +202,7 @@ class OneLakeCatalog : public RestCatalog
202202
const std::string & auth_scope_,
203203
const std::string & oauth_server_uri_,
204204
bool oauth_server_use_request_body_,
205+
const std::string & namespaces_,
205206
DB::ContextPtr context_);
206207

207208
DB::DatabaseDataLakeCatalogType getCatalogType() const override
@@ -232,6 +233,7 @@ class BigLakeCatalog : public RestCatalog
232233
const std::string & google_adc_client_secret_,
233234
const std::string & google_adc_refresh_token_,
234235
const std::string & google_adc_quota_project_id_,
236+
const std::string & namespaces_,
235237
DB::ContextPtr context_);
236238

237239
DB::DatabaseDataLakeCatalogType getCatalogType() const override

0 commit comments

Comments
 (0)