[Bug] Standalone multi-group Measure aggregation returns one row per group

オープン
#14,198 コメント 0 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hanahmily がすでに取り組んでいます。

2026年11月5日 から。

評価

この issue はまだ評価されていません。

説明

bug database
Search before asking
  • I had searched in the issues and found no similar issues.
Apache SkyWalking Component

BanyanDB (apache/skywalking-banyandb)

What happened

On a standalone node, a multi-group aggregate like SELECT host, SUM(v) FROM MEASURE qlb_fixture IN replicated_group, sw_metric ... GROUP BY host returns one row per group, m=5 and m=18, instead of a single m=23. The same query on a distributed cluster returns 23 since #14069.

MultiGroupMerge runs the full aggregation in each group and then just concatenates the results (the comment in multi_group_merge.go points at #14069 for reducing them, but that one only covered the liaison).

What you expected to happen

Standalone and distributed should give the same answer: one row per group key, reduced across groups.

How to reproduce

Register RegisterMultiGroupAggTable (added in apache/skywalking-banyandb#1442) in test/integration/standalone/query/vectorized_test.go and run it with -tags querymetrics. It fails with QL row count: got 2, want 1.

Anything else

I'd like to fix it by running each group in partial mode and reducing with the same path the liaison uses, then registering that test in the standalone suite too. Ok to take it?

Are you willing to submit a pull request to fix on your own?
  • Yes I am willing to submit a pull request on my own!
Code of Conduct
主要言語
Java
スター
25k
フォーク
6.6k
平均マージ
12時間 41分
マージ済み PR(30日)
48

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/skywalking のほかの issue

apache/skywalking の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。