@@ -2329,6 +2329,7 @@ void Executor::executeWorkUnitPerFragment(
2329
2329
for (auto fragment_index : fragment_indexes) {
2330
2330
// We may want to consider in the future allowing this to execute on devices other
2331
2331
// than CPU
2332
+ LOG (ERROR) << " kernel create and run with fragment_idx: " << fragment_index;
2332
2333
FragmentsList fragments_list{{db_id, table_id, {fragment_index}}};
2333
2334
ExecutionKernel kernel (ra_exe_unit,
2334
2335
co.device_type ,
@@ -2990,6 +2991,8 @@ Executor::getRowCountAndOffsetForAllFrags(
2990
2991
const CartesianProduct<std::vector<std::vector<size_t >>>& frag_ids_crossjoin,
2991
2992
const std::vector<InputDescriptor>& input_descs,
2992
2993
const std::map<TableRef, const TableFragments*>& all_tables_fragments) {
2994
+ auto timer = DEBUG_TIMER (__func__);
2995
+ INJECT_TIMER (getRowCountAndOffsetForAllFrags);
2993
2996
std::vector<std::vector<int64_t >> all_num_rows;
2994
2997
std::vector<std::vector<uint64_t >> all_frag_offsets;
2995
2998
const auto tab_id_to_frag_offsets =
@@ -3128,6 +3131,7 @@ FetchResult Executor::fetchChunks(
3128
3131
memory_level_for_column = Data_Namespace::CPU_LEVEL;
3129
3132
}
3130
3133
if (needFetchAllFragments (*col_id, ra_exe_unit, selected_fragments)) {
3134
+ VLOG (1 ) << " Need to fetch all frags." ;
3131
3135
// determine if we need special treatment to linearlize multi-frag table
3132
3136
// i.e., a column that is classified as varlen type, i.e., array
3133
3137
// for now, we can support more types in this way
@@ -3352,6 +3356,8 @@ void Executor::buildSelectedFragsMapping(
3352
3356
const std::list<std::shared_ptr<const InputColDescriptor>>& col_global_ids,
3353
3357
const FragmentsList& selected_fragments,
3354
3358
const RelAlgExecutionUnit& ra_exe_unit) {
3359
+ auto timer = DEBUG_TIMER (__func__);
3360
+ INJECT_TIMER (buildSelectedFragsMapping);
3355
3361
local_col_to_frag_pos.resize (plan_state_->global_to_local_col_ids_ .size ());
3356
3362
size_t frag_pos{0 };
3357
3363
const auto & input_descs = ra_exe_unit.input_descs ;
0 commit comments