Skip to content

Commit

Permalink
fix open_scanner result selected_columns being inconsistent with data…
Browse files Browse the repository at this point in the history
… order
  • Loading branch information
gnehil committed Jan 8, 2025
1 parent 744691a commit 8d6a091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/runtime/fragment_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,8 @@ Status FragmentMgr::exec_external_plan_fragment(const TScanOpenParams& params,
"processed";
return Status::InvalidArgument(msg.str());
}
TupleDescriptor* tuple_desc = desc_tbl->get_tuple_descriptor(0);
auto output_tuple_id = t_query_plan_info.plan_fragment.plan.nodes.front().output_tuple_id;
TupleDescriptor* tuple_desc = desc_tbl->get_tuple_descriptor(output_tuple_id);
if (tuple_desc == nullptr) {
LOG(WARNING) << "open context error: extract TupleDescriptor failure";
std::stringstream msg;
Expand Down

0 comments on commit 8d6a091

Please sign in to comment.