apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.47k stars 3.24k forks source link

[Feature] datetime column type support auto-initialized with default CURRENT_TIMESTAMP #9570

Closed dataalive closed 2 years ago

dataalive commented 2 years ago

Search before asking

Description

An auto-initialized column is set to the current timestamp for inserted rows that specify no value for the column.

so when we define a column like sync_at DateTime DEFAULT CURRENT_TIMESTAMP COMMENT "sync time"

Use case

No response

Related issues

No response

Are you willing to submit PR?

Code of Conduct

BePPPower commented 2 years ago

I'm willing to develop this feature

yiguolei commented 2 years ago

CTAS support insert into values support insert into select stream load alter table not care about spark dpp load