Skip to content

Commit 161959f

Browse files
fix
1 parent 5b34ab4 commit 161959f

File tree

1 file changed

+3
-1
lines changed
  • apps/framework-cli/src/infrastructure/olap/clickhouse

1 file changed

+3
-1
lines changed

apps/framework-cli/src/infrastructure/olap/clickhouse/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,13 +911,15 @@ async fn execute_modify_table_column(
911911
let required_changed = before_column.required != after_column.required;
912912
let comment_changed = before_column.comment != after_column.comment;
913913
let ttl_changed = before_column.ttl != after_column.ttl;
914+
let codec_changed = before_column.codec != after_column.codec;
914915

915916
// If only the comment changed, use a simpler ALTER TABLE ... MODIFY COLUMN ... COMMENT
916917
// This is more efficient and avoids unnecessary table rebuilds
917918
if !data_type_changed
918919
&& !required_changed
919920
&& !default_changed
920921
&& !ttl_changed
922+
&& !codec_changed
921923
&& comment_changed
922924
{
923925
log::info!(
@@ -956,7 +958,7 @@ async fn execute_modify_table_column(
956958

957959
log::info!(
958960
"Executing ModifyTableColumn for table: {}, column: {} ({}→{})\
959-
data_type_changed: {data_type_changed}, default_changed: {default_changed}, required_changed: {required_changed}, comment_changed: {comment_changed}, ttl_changed: {ttl_changed}",
961+
data_type_changed: {data_type_changed}, default_changed: {default_changed}, required_changed: {required_changed}, comment_changed: {comment_changed}, ttl_changed: {ttl_changed}, codec_changed: {codec_changed}",
960962
table_name,
961963
after_column.name,
962964
before_column.data_type,

0 commit comments

Comments
 (0)