Merge pull request #43316 from ClickHouse/disable-delta-hudi-readonly

Disable `deltaLake` and `hudi` table functions in readonly mode
This commit is contained in:
Alexey Milovidov 2022-11-17 19:27:43 +01:00 committed by GitHub
commit 0d211ed198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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});
}
}

View File

@ -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});
}
}