Bugfix for null data format

This commit is contained in:
Zach41
2023-12-26 03:44:45 +00:00
committed by ob-robot
parent 36f9cecbc7
commit 2778509d3f

View File

@ -222,10 +222,15 @@ public:
agg_ctx, agg_col_id, cur_group_id, output_start_idx, loop_cnt, skip);
break;
}
case common::VEC_UNIFORM_CONST:
case common::VEC_UNIFORM_CONST: {
// must be null
ret = ret = collect_group_results<uniform_fmt<VEC_TC_NULL, true>>(
agg_ctx, agg_col_id, cur_group_id, output_start_idx, loop_cnt, skip);
break;
}
case common::VEC_UNIFORM: {
// must be null
ret = collect_group_results<uniform_fmt<VEC_TC_NULL, true>>(
ret = collect_group_results<uniform_fmt<VEC_TC_NULL, false>>(
agg_ctx, agg_col_id, cur_group_id, output_start_idx, loop_cnt, skip);
break;
}
@ -272,13 +277,18 @@ public:
agg_ctx, agg_col_id, output_start_idx, batch_size, rows, row_meta);
break;
}
case VEC_UNIFORM_CONST:
case VEC_UNIFORM: {
case VEC_UNIFORM_CONST: {
// must be null type
ret = collect_group_results<uniform_fmt<VEC_TC_NULL, true>>(
agg_ctx, agg_col_id, output_start_idx, batch_size, rows, row_meta);
break;
}
case VEC_UNIFORM: {
// must be null type
ret = collect_group_results<uniform_fmt<VEC_TC_NULL, false>>(
agg_ctx, agg_col_id, output_start_idx, batch_size, rows, row_meta);
break;
}
default: {
ret = OB_ERR_UNEXPECTED;
SQL_LOG(WARN, "invalid result format", K(ret), K(res_fmt), K(agg_col_id));