diff --git a/pkg/vm/engine/tae/tables/mnode.go b/pkg/vm/engine/tae/tables/mnode.go index 1cb07746d77f8..f156d0b4fb9f6 100644 --- a/pkg/vm/engine/tae/tables/mnode.go +++ b/pkg/vm/engine/tae/tables/mnode.go @@ -499,6 +499,10 @@ func (node *memoryNode) CollectAppendInRange( node.object.RLock() minRow, maxRow, commitTSVec, abortVec, abortedMap := node.object.appendMVCC.CollectAppendLocked(start, end, mp) + if commitTSVec == nil || abortVec == nil { + node.object.RUnlock() + return nil, nil + } batWithVer, err = node.GetDataWindowOnWriteSchema(minRow, maxRow, mp) if err != nil { node.object.RUnlock()