Skip to content

Commit

Permalink
fix: created_on of RawTableMeta should be init with Utc::now (#2710)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Nov 8, 2023
1 parent 1f57c6b commit 69ee2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/src/statement/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit 69ee2c3

Please sign in to comment.