From 69ee2c336c00647beff1e9768eb9cfc392369982 Mon Sep 17 00:00:00 2001 From: tison Date: Wed, 8 Nov 2023 16:45:49 +0800 Subject: [PATCH] fix: created_on of RawTableMeta should be init with Utc::now (#2710) Signed-off-by: tison --- src/operator/src/statement/ddl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operator/src/statement/ddl.rs b/src/operator/src/statement/ddl.rs index 581f265604..1932e956fc 100644 --- a/src/operator/src/statement/ddl.rs +++ b/src/operator/src/statement/ddl.rs @@ -18,7 +18,7 @@ use std::sync::Arc; use api::helper::ColumnDataTypeWrapper; use api::v1::{column_def, AlterExpr, CreateTableExpr}; use catalog::CatalogManagerRef; -use chrono::DateTime; +use chrono::Utc; use common_catalog::consts::{DEFAULT_CATALOG_NAME, DEFAULT_SCHEMA_NAME}; use common_catalog::format_full_table_name; use common_meta::cache_invalidator::Context; @@ -477,7 +477,7 @@ fn create_table_info( next_column_id: column_schemas.len() as u32, region_numbers: vec![], options: table_options, - created_on: DateTime::default(), + created_on: Utc::now(), partition_key_indices, };