Skip to content

Commit

Permalink
use constants
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed May 27, 2024
1 parent f9940a3 commit a8a863f
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 @@ -59,7 +59,7 @@ use store_api::metric_engine_consts::{LOGICAL_TABLE_METADATA_KEY, METRIC_ENGINE_
use substrait::{DFLogicalSubstraitConvertor, SubstraitPlan};
use table::dist_table::DistTable;
use table::metadata::{self, RawTableInfo, RawTableMeta, TableId, TableInfo, TableType};
use table::requests::{AlterKind, AlterTableRequest, TableOptions};
use table::requests::{AlterKind, AlterTableRequest, TableOptions, COMMENT_KEY};
use table::TableRef;

use super::StatementExecutor;
Expand Down Expand Up @@ -1142,7 +1142,7 @@ fn create_table_info(
};

let desc = if create_table.desc.is_empty() {
create_table.table_options.get("comment").cloned()
create_table.table_options.get(COMMENT_KEY).cloned()
} else {
Some(create_table.desc.clone())
};
Expand Down

0 comments on commit a8a863f

Please sign in to comment.