Corrected smoe ifdef issues

This commit is contained in:
divanik 2024-10-25 11:09:03 +00:00
parent 1b6979c5cd
commit 31490438d9

View File

@ -201,20 +201,6 @@ void registerStorageIceberg(StorageFactory & factory)
.source_access_type = AccessType::AZURE, .source_access_type = AccessType::AZURE,
}); });
#endif #endif
factory.registerStorage(
"IcebergLocal",
[&](const StorageFactory::Arguments & args)
{
auto configuration = std::make_shared<StorageLocalIcebergConfiguration>();
StorageObjectStorage::Configuration::initialize(*configuration, args.engine_args, args.getLocalContext(), false);
return createStorageObjectStorage(args, configuration, args.getLocalContext());
},
{
.supports_settings = false,
.supports_schema_inference = true,
.source_access_type = AccessType::FILE,
});
#if USE_HDFS #if USE_HDFS
factory.registerStorage( factory.registerStorage(
"IcebergHDFS", "IcebergHDFS",
@ -231,10 +217,26 @@ void registerStorageIceberg(StorageFactory & factory)
.source_access_type = AccessType::HDFS, .source_access_type = AccessType::HDFS,
}); });
#endif #endif
factory.registerStorage(
"IcebergLocal",
[&](const StorageFactory::Arguments & args)
{
auto configuration = std::make_shared<StorageLocalIcebergConfiguration>();
StorageObjectStorage::Configuration::initialize(*configuration, args.engine_args, args.getLocalContext(), false);
return createStorageObjectStorage(args, configuration, args.getLocalContext());
},
{
.supports_settings = false,
.supports_schema_inference = true,
.source_access_type = AccessType::FILE,
});
} }
#endif #endif
#if USE_AWS_S3
#if USE_PARQUET #if USE_PARQUET
void registerStorageDeltaLake(StorageFactory & factory) void registerStorageDeltaLake(StorageFactory & factory)
{ {
@ -272,4 +274,5 @@ void registerStorageHudi(StorageFactory & factory)
.source_access_type = AccessType::S3, .source_access_type = AccessType::S3,
}); });
} }
#endif
} }