Skip to content

Commit

Permalink
fix(core): fix column not found error after column rename (#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoma committed May 19, 2023
1 parent 28eb295 commit f935efc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/io/questdb/cairo/TableWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3602,6 +3602,8 @@ private void hardLinkAndPurgeColumnFiles(CharSequence columnName, int columnInde
} else {
long columnNameTxn = columnVersionWriter.getColumnNameTxn(txWriter.getLastPartitionTimestamp(), columnIndex);
hardLinkAndPurgeColumnFiles(columnName, columnIndex, columnType, newName, txWriter.getLastPartitionTimestamp(), -1L, newColumnNameTxn, columnNameTxn);
long columnTop = columnVersionWriter.getColumnTop(txWriter.getLastPartitionTimestamp(), columnIndex);
columnVersionWriter.upsert(txWriter.getLastPartitionTimestamp(), columnIndex, newColumnNameTxn, columnTop);
}

if (ColumnType.isSymbol(columnType)) {
Expand Down

0 comments on commit f935efc

Please sign in to comment.