X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fhfta%2Fgroupby_slowflush_operator.h;fp=include%2Fhfta%2Fgroupby_slowflush_operator.h;h=cc5ab36191e1ddb9847573d33d720d20dfb2938e;hb=393a42a5b1ba6e64bd3eabf7d0ce2f197e966355;hp=d2120ba5648f52574f2b23998678618724f77c08;hpb=5a4f9d3d8846452b1b99302d03368565863df62a;p=com%2Fgs-lite.git diff --git a/include/hfta/groupby_slowflush_operator.h b/include/hfta/groupby_slowflush_operator.h index d2120ba..cc5ab36 100644 --- a/include/hfta/groupby_slowflush_operator.h +++ b/include/hfta/groupby_slowflush_operator.h @@ -85,21 +85,21 @@ public: flush_old(result); } if(n_patterns <= 1){ - aggregate aggr; + char aggr_buffer[sizeof(aggregate)]; // create an aggregate in preallocated buffer - func.create_aggregate(tup, (char*)&aggr); + func.create_aggregate(tup, aggr_buffer); // neeed operator= doing a deep copy - group_table[curr_table].insert(grp, aggr); + group_table[curr_table].insert(grp, (*(aggregate*)aggr_buffer)); }else{ int p; for(p=0;p