@@ -53,7 +53,8 @@ CombineColumns(shared_ptr<GPUColumn> column1, shared_ptr<GPUColumn> column2, GPU
5353 return ResolveTypeCombineStrings (column1, column2, gpuBufferManager);
5454 break ;
5555 default :
56- throw NotImplementedException (" Unsupported column type" );
56+ throw NotImplementedException (" Unsupported column type in `CombineColumns: %d" ,
57+ static_cast <int >(column1->data_wrapper .type ));
5758 }
5859}
5960
@@ -259,7 +260,8 @@ HandleGroupByAggregateExpression(vector<shared_ptr<GPUColumn>> &group_by_keys, v
259260 } else if (aggregate_type == ColumnType::FLOAT64 ) {
260261 ResolveTypeGroupByString<double >(group_by_keys, aggregate_keys, gpuBufferManager, aggregates, num_group_keys);
261262 } else {
262- throw NotImplementedException (" Unsupported column type" );
263+ throw NotImplementedException (" Unsupported column type in `HandleGroupByAggregateExpression`: {}" ,
264+ static_cast <int >(aggregate_type));
263265 }
264266 } else {
265267 // check if all the group by keys are all integers
@@ -274,12 +276,13 @@ HandleGroupByAggregateExpression(vector<shared_ptr<GPUColumn>> &group_by_keys, v
274276 ResolveTypeGroupByAggregateExpression<uint64_t , uint64_t >(group_by_keys, aggregate_keys, gpuBufferManager, aggregates, num_group_keys);
275277 } else if (aggregate_type == ColumnType::FLOAT64 ) {
276278 ResolveTypeGroupByAggregateExpression<uint64_t , double >(group_by_keys, aggregate_keys, gpuBufferManager, aggregates, num_group_keys);
277- } else throw NotImplementedException (" Unsupported column type" );
279+ } else throw NotImplementedException (" Unsupported column type in `HandleGroupByAggregateExpression`: {}" ,
280+ static_cast <int >(aggregate_type));
278281 break ;
279282 case ColumnType::FLOAT64 :
280- throw NotImplementedException (" Unsupported column type" );
281283 default :
282- throw NotImplementedException (" Unsupported column type" );
284+ throw NotImplementedException (" Unsupported column type in `HandleGroupByAggregateExpression`: {}" ,
285+ static_cast <int >(group_by_keys[0 ]->data_wrapper .type ));
283286 }
284287 }
285288}
@@ -349,9 +352,9 @@ void HandleDuplicateElimination(vector<shared_ptr<GPUColumn>> &group_by_keys, GP
349352 ResolveTypeDuplicateElimination<uint64_t >(group_by_keys, gpuBufferManager, num_group_keys);
350353 break ;
351354 case ColumnType::FLOAT64 :
352- throw NotImplementedException (" Unsupported column type" );
353355 default :
354- throw NotImplementedException (" Unsupported column type" );
356+ throw NotImplementedException (" Unsupported column type in `HandleDuplicateElimination`: %d" ,
357+ static_cast <int >(group_by_keys[0 ]->data_wrapper .type ));
355358 }
356359}
357360
@@ -414,12 +417,13 @@ void HandleDistinctGroupBy(vector<shared_ptr<GPUColumn>> &group_by_keys, vector<
414417 case ColumnType::INT64 : {
415418 if (aggregate_keys[0 ]->data_wrapper .type == ColumnType::INT64 ) {
416419 ResolveTypeDistinctGroupBy<uint64_t , uint64_t >(group_by_keys, aggregate_keys, gpuBufferManager, distinct_info, num_group_keys);
417- } else throw NotImplementedException (" Unsupported column type" );
420+ } else throw NotImplementedException (" Unsupported column type in `HandleDistinctGroupBy`: %d" ,
421+ static_cast <int >(aggregate_keys[0 ]->data_wrapper .type ));
418422 break ;
419423 } case ColumnType::FLOAT64 :
420- throw NotImplementedException (" Unsupported column type" );
421424 default :
422- throw NotImplementedException (" Unsupported column type" );
425+ throw NotImplementedException (" Unsupported column type in `HandleDistinctGroupBy`: %d" ,
426+ static_cast <int >(group_by_keys[0 ]->data_wrapper .type ));
423427 }
424428}
425429
0 commit comments