Repository navigation
Allow external table writes with disable_insertion_and_mutation - #88549
Conversation
|
Workflow [PR], commit [01d436a] Summary: ❌
|
|
@tavplubix can we also add insertions into Kafka engine? This is a huge blocker for the DWH team. |
| && query.table_id.database_name != DatabaseCatalog::TEMPORARY_DATABASE) | ||
| { | ||
| throw Exception(ErrorCodes::QUERY_IS_PROHIBITED, "Insert queries are prohibited"); | ||
| if (!(std::dynamic_pointer_cast<StorageObjectStorage>(table) || table->isDataLake())) |
There was a problem hiding this comment.
We have too many conditions here.
My advice is to have an individual function that returns a bool value, which means if query is allowed
And in the function we can have enough comment to explain why to allow some queries and disallow some
e40062d to
369619a
Compare
alexey-milovidov
left a comment
There was a problem hiding this comment.
TODO: Check that the documentation is updated before merging.
Inserts into external engines are allowed despite this setting.
| table->isObjectStorage() || /// S3, Azure, GCS, HDFS, etc. | ||
| table->isDataLake() || /// Iceberg, DeltaLake, Hudi | ||
| table->isMessageQueue() || /// Kafka, RabbitMQ, NATS | ||
| table->isExternalDatabase(); /// MySQL, PostgreSQL, MongoDB, Hive, YTsaurus |
There was a problem hiding this comment.
Needs special clarification about external ClickHouse databases. Otherwise, it looks inconsistent.
It should be approved with synchronous inserts into Distributed tables.
There was a problem hiding this comment.
It would allow inserting on local replica through Distributed, bypassing the restriction
|
Perf tests - Failed to insert data into CI DB |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Allow inserting into remote and data lake tables when
disable_insertion_and_mutationis enabledDocumentation entry for user-facing changes