stoneatom / stonedb

StoneDB is an Open-Source MySQL HTAP and MySQL-Native DataBase for OLTP, Real-Time Analytics, a counterpart of MySQLHeatWave. (https://stonedb.io)
https://stonedb.io/
GNU General Public License v2.0
866 stars 141 forks source link

bugfix(tianmu): fix aggregation result incorrect when no record #1942 #1951

Closed Double0101 closed 1 year ago

Double0101 commented 1 year ago

Cause: In the function AggregationAlgorithm::Aggregate in aggregation_algorithm.cpp, it doesn't check validity of mit before PutAggregatedValue. Solution: Check validity of mit.

Summary about this PR

Issue Number: close #1942

Tests Check List

Changelog

Documentation

mergify[bot] commented 1 year ago

This pull request's title should follow requirements next. @Double0101 please check it :point_down:.

Valid format:

fix(vc): fix sth..... (#3306)
  ^         ^---------^  ^----^
  |         |            |
  |         +            +-> you issue id.
  |         |
  |         +-> Summary in present tense.
  |
  +-------> Type: feat, fix, docs, workflow, style, refactor, test, website, chore

Valid types:

mergify[bot] commented 1 year ago

Thanks for the contribution! I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

Double0101 commented 1 year ago
[ 99%] tianmu.issue1876                         w8 [ pass ]  1217382
[100%] shutdown_report                          w0 [ pass ]       
--------------------------------------------------------------------------
The servers were restarted 22 times
Spent 2047.969 of 1299 seconds executing testcases

Completed: All 281 tests were successful.