Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@mieciu
Copy link
Member

@mieciu mieciu commented Jul 2, 2025

When users connect Quesma to ClickHouse and would like to work with tables which are not created by Quesma, ALTER statements doesn't work, unless attributes_* columns are present. Therefore we end up with:

  1. No ALTER executed
  2. Extra fields being ignored because we neither added the dedicated column nor had attributes_* column to store it.

In general, we discourage such setup in read/write scenarios - it's always better to have Quesma manage your CH tables so that it controls any required metadata.

In most cases BYOT is used in read-only, ingest-disabled situations. However, there's a simple way to mitigate this limitation:

ALTER TABLE test_db.test_table [ON cluster quesma_cluster] ADD COLUMN "attributes_values" Map(String, String)
ALTER TABLE test_db.test_table [ON cluster quesma_cluster] ADD COLUMN "attributes_metadata" Map(String, String)

@mieciu mieciu marked this pull request as ready for review July 3, 2025 06:31
@mieciu mieciu requested a review from a team as a code owner July 3, 2025 06:31
@mieciu mieciu added this pull request to the merge queue Jul 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 3, 2025
@pdelewski pdelewski added this pull request to the merge queue Jul 4, 2025
Merged via the queue into main with commit 3efb239 Jul 4, 2025
6 checks passed
@pdelewski pdelewski deleted the bring-your-own-table branch July 4, 2025 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants