blob: b59f847e997e4f9e8b9640024b3c92173c680a99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include <Storages/DataLakes/IStorageDataLake.h>
#include "clickhouse_config.h"
#if USE_AWS_S3
#include <Storages/DataLakes/StorageDeltaLake.h>
#include <Storages/DataLakes/StorageIceberg.h>
#include <Storages/DataLakes/StorageHudi.h>
namespace DB
{
#define REGISTER_DATA_LAKE_STORAGE(STORAGE, NAME) \
factory.registerStorage( \
NAME, \
[](const StorageFactory::Arguments & args) \
{ \
return createDataLakeStorage<STORAGE>(args);\
}, \
{ \
.supports_settings = false, \
.supports_schema_inference = true, \
.source_access_type = AccessType::S3, \
});
#if USE_PARQUET
void registerStorageDeltaLake(StorageFactory & factory)
{
REGISTER_DATA_LAKE_STORAGE(StorageDeltaLakeS3, StorageDeltaLakeName::name)
}
#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)
}
}
#endif
|