@@ -63,19 +63,19 @@ static void CompileAndExecutePlan(
63
63
codegen::QueryCache::Instance ().Add (plan, std::move (compiled_query));
64
64
}
65
65
66
- auto on_query_result = [&on_complete,
67
- &consumer](executor::ExecutionResult result) {
68
- std::vector<ResultValue> values;
69
- for (const auto &tuple : consumer.GetOutputTuples ()) {
70
- for (uint32_t i = 0 ; i < tuple.tuple_ .size (); i++) {
71
- auto column_val = tuple.GetValue (i);
72
- auto str = column_val.IsNull () ? " " : column_val.ToString ();
73
- LOG_TRACE (" column content: [%s]" , str.c_str ());
74
- values.push_back (std::move (str));
75
- }
76
- }
77
- on_complete (result, std::move (values));
78
- };
66
+ auto on_query_result =
67
+ [&on_complete, &consumer](executor::ExecutionResult result) {
68
+ std::vector<ResultValue> values;
69
+ for (const auto &tuple : consumer.GetOutputTuples ()) {
70
+ for (uint32_t i = 0 ; i < tuple.tuple_ .size (); i++) {
71
+ auto column_val = tuple.GetValue (i);
72
+ auto str = column_val.IsNull () ? " " : column_val.ToString ();
73
+ LOG_TRACE (" column content: [%s]" , str.c_str ());
74
+ values.push_back (std::move (str));
75
+ }
76
+ }
77
+ on_complete (result, std::move (values));
78
+ };
79
79
80
80
query->Execute (std::move (executor_context), consumer, on_query_result);
81
81
}
@@ -100,7 +100,7 @@ static void InterpretPlan(
100
100
status = executor_tree->Init ();
101
101
if (status != true ) {
102
102
result.m_result = ResultType::FAILURE;
103
- result.m_error_message = " Executor tree init failed " ;
103
+ result.m_error_message = " Failed initialization of query execution tree " ;
104
104
CleanExecutorTree (executor_tree.get ());
105
105
on_complete (result, std::move (values));
106
106
return ;
@@ -157,7 +157,8 @@ void PlanExecutor::ExecutePlan(
157
157
ExecutionResult result;
158
158
result.m_result = ResultType::FAILURE;
159
159
result.m_error_message = e.what ();
160
- LOG_ERROR (" error thrown in Execution: %s" , result.m_error_message .c_str ());
160
+ LOG_ERROR (" Error thrown during execution: %s" ,
161
+ result.m_error_message .c_str ());
161
162
on_complete (result, {});
162
163
}
163
164
}
0 commit comments