Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu committed Feb 20, 2024
1 parent 7412eb7 commit 4fab31e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cdc/redo/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,14 @@ func (l *LogReader) ReadNextRow(ctx context.Context) (*model.RowChangedEvent, er
zap.Any("columns", rowInRedoLog.Columns),
zap.String("table", rowInRedoLog.Table.Table),
zap.String("schema", rowInRedoLog.Table.Schema))
cols := rowInRedoLog.Columns
if cols == nil {
cols = rowInRedoLog.PreColumns
}
tableInfo := model.BuildTableInfo(
rowInRedoLog.Table.Schema,
rowInRedoLog.Table.Table,
rowInRedoLog.Columns,
cols,
rowInRedoLog.IndexColumns)
tableInfo.TableName.TableID = rowInRedoLog.Table.TableID
tableInfo.TableName.IsPartition = rowInRedoLog.Table.IsPartition
Expand Down

0 comments on commit 4fab31e

Please sign in to comment.