Fix build and test

This commit is contained in:
kssenii 2024-11-15 11:41:54 +01:00
parent 0e14b49298
commit 32ff7d2722
2 changed files with 13 additions and 3 deletions

View File

@ -110,22 +110,34 @@ std::shared_ptr<StorageObjectStorage::Configuration> DatabaseIceberg::getConfigu
{
switch (settings[DatabaseIcebergSetting::storage_type].value)
{
#if USE_AWS_S3
case DB::DatabaseIcebergStorageType::S3:
{
return std::make_shared<StorageS3IcebergConfiguration>();
}
#endif
#if USE_AZURE_BLOB_STORAGE
case DB::DatabaseIcebergStorageType::Azure:
{
return std::make_shared<StorageAzureIcebergConfiguration>();
}
#endif
#if USE_HDFS
case DB::DatabaseIcebergStorageType::HDFS:
{
return std::make_shared<StorageHDFSIcebergConfiguration>();
}
#endif
case DB::DatabaseIcebergStorageType::Local:
{
return std::make_shared<StorageLocalIcebergConfiguration>();
}
#if !USE_AWS_S3 || !USE_AZURE_BLOB_STORAGE || !USE_HDFS
default:
throw Exception(ErrorCodes::BAD_ARGUMENTS,
"Server does not contain support for storage type {}",
settings[DatabaseIcebergSetting::storage_type].value);
#endif
}
}

View File

@ -242,13 +242,11 @@ def test_many_namespaces(started_cluster):
f"{root_namespace_1}.B.C",
f"{root_namespace_1}.B.C.D",
f"{root_namespace_1}.B.C.D.E",
f"{root_namespace_1}.B.C.D.E.F",
f"{root_namespace_1}.B.C.D.E.FF",
f"{root_namespace_2}",
f"{root_namespace_2}.C",
f"{root_namespace_2}.CC",
]
tables = ["A", "B", "C", "D", "E", "F"]
tables = ["A", "B", "C"]
catalog = load_catalog_impl(started_cluster)
for namespace in namespaces: