This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit 3efb239
authored
Comments/docs on "bring your own table" and
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)
```ALTER situation (#1484)1 parent d953f9f commit 3efb239
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
638 | 640 | | |
| |||
0 commit comments