Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed Dec 27, 2024
1 parent ba4b8e2 commit c15aaa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/meta/proto-conv/src/table_from_to_protobuf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ impl FromToProto for mt::TableMeta {

let default_cluster_key_id = if let Some(cluster_key_id) = p.default_cluster_key_id {
cluster_key_id
} else if p.cluster_keys.is_empty() {
0
} else {
p.cluster_keys.len() as u32 - 1
};
Expand Down

0 comments on commit c15aaa8

Please sign in to comment.