Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Nov 18, 2022
1 parent ecd5eba commit abdf626
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ddl/backfilling.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ func (w *backfillWorker) run(d *ddlCtx, bf backfiller, job *model.Job) {
w.batchCnt = int(variable.GetDDLReorgBatchSize())
result := w.handleBackfillTask(d, task, bf)
w.resultCh <- result
if result.err != nil {
logutil.BgLogger().Info("[ddl] backfill worker exit on error",
zap.Stringer("type", w.tp), zap.Int("workerID", w.id), zap.Error(result.err))
return
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions ddl/index_cop.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func newCopContext(tblInfo *model.TableInfo, idxInfo *model.IndexInfo, sessCtx s
fieldTps := make([]*types.FieldType, 0, len(idxInfo.Columns))
for _, idxCol := range idxInfo.Columns {
c := tblInfo.Columns[idxCol.Offset]
if c.IsGenerated() && !c.GeneratedStored {
// TODO(tangenta): support reading virtual generated columns.
return nil
}
colInfos = append(colInfos, c)
fieldTps = append(fieldTps, &c.FieldType)
}
Expand Down

0 comments on commit abdf626

Please sign in to comment.