mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #43316 from ClickHouse/disable-delta-hudi-readonly
Disable `deltaLake` and `hudi` table functions in readonly mode
This commit is contained in:
commit
0d211ed198
@ -13,7 +13,7 @@
|
||||
# include <Storages/StorageDelta.h>
|
||||
# include <Storages/StorageURL.h>
|
||||
# include <Storages/checkAndGetLiteralArgument.h>
|
||||
# include <TableFunctions/TableFunctionDelta.h>
|
||||
# include <TableFunctions/TableFunctionDeltaLake.h>
|
||||
# include <TableFunctions/TableFunctionFactory.h>
|
||||
# include "registerTableFunctions.h"
|
||||
|
||||
@ -160,9 +160,9 @@ void registerTableFunctionDelta(TableFunctionFactory & factory)
|
||||
factory.registerFunction<TableFunctionDelta>(
|
||||
{.documentation
|
||||
= {R"(The table function can be used to read the DeltaLake table stored on object store.)",
|
||||
Documentation::Examples{{"hudi", "SELECT * FROM deltaLake(url, access_key_id, secret_access_key)"}},
|
||||
Documentation::Examples{{"deltaLake", "SELECT * FROM deltaLake(url, access_key_id, secret_access_key)"}},
|
||||
Documentation::Categories{"DataLake"}},
|
||||
.allow_readonly = true});
|
||||
.allow_readonly = false});
|
||||
}
|
||||
|
||||
}
|
@ -162,7 +162,7 @@ void registerTableFunctionHudi(TableFunctionFactory & factory)
|
||||
= {R"(The table function can be used to read the Hudi table stored on object store.)",
|
||||
Documentation::Examples{{"hudi", "SELECT * FROM hudi(url, access_key_id, secret_access_key)"}},
|
||||
Documentation::Categories{"DataLake"}},
|
||||
.allow_readonly = true});
|
||||
.allow_readonly = false});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user