[CP][BUGFIX]json array aggr adapt bit type

This commit is contained in:
obdev
2022-11-09 02:35:39 +00:00
committed by wangzelin.wzl
parent a41c97afed
commit 6608b24752
2 changed files with 2 additions and 0 deletions

View File

@ -5583,6 +5583,7 @@ int ObAggregateProcessor::get_json_arrayagg_result(const ObAggrInfo &aggr_info,
ObObjType val_type = tmp_obj->get_type();
ObCollationType cs_type = tmp_obj->get_collation_type();
ObScale scale = tmp_obj->get_scale();
scale = (val_type == ObBitType) ? aggr_info.param_exprs_.at(0)->datum_meta_.length_semantics_ : scale;
ObIJsonBase *json_val = NULL;
ObDatum converted_datum;
converted_datum.set_datum(storted_row->cells()[0]);