horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

Support default value option regardless their defining orders

Open ygf11 opened this issue 2 years ago • 0 comments

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

ygf11 avatar Sep 14 '22 05:09 ygf11