[fix](projections) get error row_descriptor when have projections on ExecNode (#12232)

When ExecNode's projections is not empty, it use output row descriptor to initialize the block before doing projection. But we should use original row descriptor. This PR fix it.
This commit is contained in:
HappenLee
2022-09-01 10:48:10 +08:00
committed by GitHub
parent 60a2fa7dea
commit 8c8078ad28
7 changed files with 15 additions and 15 deletions

View File

@ -59,7 +59,7 @@ Status VTableFunctionNode::prepare(RuntimeState* state) {
RETURN_IF_ERROR(VExpr::prepare(_vfn_ctxs, state, _row_descriptor));
// get current all output slots
for (const auto& tuple_desc : this->row_desc().tuple_descriptors()) {
for (const auto& tuple_desc : this->_row_descriptor.tuple_descriptors()) {
for (const auto& slot_desc : tuple_desc->slots()) {
_output_slots.push_back(slot_desc);
}