Skip to content

[Bug] Wrong default value CURRENT_TIMESTAMP after schema change  #16362

@Gabriel39

Description

@Gabriel39

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

CREATE TABLE ads_huad_app_order_hi (
house_id bigint(20) NULL DEFAULT "-1" COMMENT '仓库id',
pick_order_big_num decimal(27, 9) SUM NULL COMMENT '拣货订单件数(大单位)'
) ENGINE=OLAP
AGGREGATE KEY(house_id)
COMMENT 'OLAP'
DISTRIBUTED BY HASH(house_id) BUCKETS 10
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"in_memory" = "false",
"storage_format" = "V2",
"disable_auto_compaction" = "false"
);

insert into ads_huad_app_order_hi values(1,1.1);

ALTER TABLE ads_huad_app_order_hi ADD COLUMN compute_time datetime replace NULL DEFAULT CURRENT_TIMESTAMP COMMENT '计算时间' AFTER pick_order_big_num;

image

What You Expected?

compute_time should be current time

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions