GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.36k stars 315 forks source link

Alter request to physical region is forbidden #5042

Open killme2008 opened 2 days ago

killme2008 commented 2 days ago

What type of bug is this?

Unexpected error, User Experience

What subsystems are affected?

Storage Engine

Minimal reproduce step

Try to change a physical table ttl:

mysql> ALTER TABLE greptime_physical_table set ttl='2years';
ERROR 1235 (42000): (Unsupported): Alter request to physical region is forbidden

But it fails.

What did you expect to see?

Success to alter

What did you see instead?

Throws error.

What operating system did you use?

All

What version of GreptimeDB did you use?

0.10.0

Relevant log output and stack trace

No response

killme2008 commented 2 days ago

Actually, we don't need to forbid this operation for physical tables at all.