Skip to content

Synchronous mutation and classic update/delete statement support #545

Description

@zhicwu

Mutation executes asynchronously in ClickHouse. And unlike other databases following SQL standard, it uses DDL instead of DML. As a result, this may break assumption in certain tools and generate overhead in downstream applications.

In order to follow standards, I hope we can:

  1. introduce a new connection setting mutationsSync(same as mutations_sync in ClickHouse) defaults to 1, meaning synchronous mutation
  2. <no longer needed as it's going to be implemented on server-side>
    take classic update/delete and transform them into ALTER TABLE... for mutation in ClickHouse
    So if you give UPDATE tbl SET col1=1, col2=2 WHERE col3=3, it will be translated into ALTER TABLE tbl UPDATE col1=1, col2=2 WHERE col3=3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions