Skip to content

Commit

Permalink
add back assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellis committed Nov 22, 2024
1 parent 4aab22e commit 4b2bf20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/java/org/apache/cassandra/schema/TableMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -1122,6 +1122,8 @@ public Builder addStaticColumn(ColumnIdentifier name, AbstractType type)

public Builder addColumn(ColumnMetadata column)
{
assert !columns.containsKey(column.name.bytes) : column.name + " is already present";

switch (column.kind)
{
case PARTITION_KEY:
Expand Down

0 comments on commit 4b2bf20

Please sign in to comment.