ydb-platform / ydb-embedded-ui

Apache License 2.0
28 stars 7 forks source link

[YDB DWH] add alter and upsert templates for column tables #866

Closed artemmufazalov closed 2 months ago

artemmufazalov commented 5 months ago

Currently for column tables we have template similar to row tables, although they don't fit:

ALTER TABLE `/dev02/home/va-kuznecov/db1/column_table`
    ADD COLUMN is_deleted Bool;
UPSERT INTO `/dev02/home/va-kuznecov/db1/column_table`
    ( `id`, `name` )
VALUES (1, 'Ivan' );
artemmufazalov commented 2 months ago

UPSERT template works in versions from this commit: https://github.com/ydb-platform/ydb/commit/805fb4bf998390fe496ba6979d885d16d24bec83, so we can leave current template

In ALTER template Bool should be replaced with Int32. UPSERT template could be further improved with real columns names: https://github.com/ydb-platform/ydb-embedded-ui/issues/1274

artemmufazalov commented 2 months ago

Templates could be found here: https://nda.ya.ru/t/_FFOyPMg78979e