Merge pull request #49125 from azat/build/iceberg-avro

Fix building iceberg without avro
This commit is contained in:
Alexey Milovidov 2023-04-26 13:41:50 +03:00 committed by GitHub
commit cf097a9c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <Storages/DataLakes/IcebergMetadataParser.h>
#include "config.h"
#if USE_AWS_S3
#if USE_AWS_S3 && USE_AVRO
#include <Storages/DataLakes/S3MetadataReader.h>
#include <Storages/StorageS3.h>
#endif
@ -18,7 +18,7 @@ struct StorageIcebergName
static constexpr auto name = "Iceberg";
};
#if USE_AWS_S3
#if USE_AWS_S3 && USE_AVRO
using StorageIcebergS3 = IStorageDataLake<StorageS3, StorageIcebergName, IcebergMetadataParser<StorageS3::Configuration, S3DataLakeMetadataReadHelper>>;
#endif

View File

@ -31,11 +31,15 @@ void registerStorageDeltaLake(StorageFactory & factory)
}
#endif
#if USE_AVRO /// StorageIceberg depending on Avro to parse metadata with Avro format.
void registerStorageIceberg(StorageFactory & factory)
{
REGISTER_DATA_LAKE_STORAGE(StorageIcebergS3, StorageIcebergName::name)
}
#endif
void registerStorageHudi(StorageFactory & factory)
{
REGISTER_DATA_LAKE_STORAGE(StorageHudiS3, StorageHudiName::name)