Reset expr data ptr after range sampling

This commit is contained in:
Zach41
2024-08-09 12:25:49 +00:00
committed by ob-robot
parent fcc094d666
commit 2cb5ea8339

View File

@ -116,6 +116,15 @@ int ObPxDistTransmitOp::next_batch(const int64_t max_row_cnt)
}
}
}
// must restire holder after sampling
// otherwise data ptr is not reset to frame, table scan may fail.
if (OB_SUCC(ret) && brs_holder_.is_saved()) {
if (OB_FAIL(brs_holder_.restore())) {
LOG_WARN("store holder failed", K(ret));
} else {
brs_holder_.reset();
}
}
} else {
if (brs_holder_.is_saved()) {
OZ(brs_holder_.restore());