mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
34 lines
966 B
C++
34 lines
966 B
C++
#include "config.h"
|
|
|
|
#if USE_AWS_S3 && USE_PARQUET
|
|
|
|
#include <Storages/DataLakes/StorageDeltaLake.h>
|
|
#include <TableFunctions/ITableFunctionDataLake.h>
|
|
#include <TableFunctions/TableFunctionFactory.h>
|
|
#include <TableFunctions/TableFunctionS3.h>
|
|
#include "registerTableFunctions.h"
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct TableFunctionDeltaLakeName
|
|
{
|
|
static constexpr auto name = "deltaLake";
|
|
};
|
|
|
|
using TableFunctionDeltaLake = ITableFunctionDataLake<TableFunctionDeltaLakeName, StorageDeltaLakeS3, TableFunctionS3>;
|
|
|
|
void registerTableFunctionDeltaLake(TableFunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<TableFunctionDeltaLake>(
|
|
{.documentation = {
|
|
.description=R"(The table function can be used to read the DeltaLake table stored on object store.)",
|
|
.examples{{"deltaLake", "SELECT * FROM deltaLake(url, access_key_id, secret_access_key)", ""}},
|
|
.categories{"DataLake"}},
|
|
.allow_readonly = false});
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|