Dear Team!
I have run into a problem while trying to truncate some tables.
TRUNCATE account_history_v0;
SQL Error [1890] [HY000]: ALTER TABLE which modifies type of column `changed_at` is not supported on a columnstore table.
Table structure:
It seems with the following two prerequisites the error is to appear during truncation:
- Table is created as a columnstore table
- There is a computed column set as primary key
We have started marking the computed column as unique instead of primary which seems to solve the issue, but I would like to ask:
- Is it a known/valid behavior of the system or an error?
- Why does TRUNCATE return an ALTER TABLE error in this case? I am not altering the structure, only emptying the content of the table.
Thank You for your help in advance!
BR
Attila