horaedb
horaedb copied to clipboard
Support default value option regardless their defining orders
Describe This Problem
Support default value for columns in Ceresdb.
Proposal
In #250, we can reference other columns in default value expr.
But it only allow to reference a column defined before it when create/alter table.
To remove this limit, we can:
- Check circle reference when create/alter table.
- Reorder the missing columns, the simple columns will run first, and other columns which depends it will run after.
Additional Context
No response