mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
fix: created_on of RawTableMeta should be init with Utc::now (#2710)
Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user