Skip to content

Conversation

@Standing-Man
Copy link
Contributor

@Standing-Man Standing-Man commented Oct 27, 2025

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

  • vec_elem_avg
  • vec_avg

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

@Standing-Man Standing-Man requested a review from a team as a code owner October 27, 2025 06:58
@github-actions github-actions bot added size/S docs-not-required This change does not impact docs. labels Oct 27, 2025
@killme2008
Copy link
Contributor

Is it still in draft? @Standing-Man

@Standing-Man
Copy link
Contributor Author

Is it still in draft? @Standing-Man

Yes, this PR currently only implements the vec_elem_avg function; the vec_avg function is still in progress. Should I convert this PR into a draft?

@killme2008
Copy link
Contributor

Is it still in draft? @Standing-Man

Yes, this PR currently only implements the vec_elem_avg function; the vec_avg function is still in progress. Should I convert this PR into a draft?

Yes. And convert it back when it's ready. Thanks!

@Standing-Man Standing-Man marked this pull request as draft October 27, 2025 07:45
@github-actions github-actions bot added size/M and removed size/S labels Oct 27, 2025
@Standing-Man Standing-Man marked this pull request as ready for review October 27, 2025 09:30
@Standing-Man Standing-Man marked this pull request as draft October 27, 2025 11:11
@Standing-Man Standing-Man marked this pull request as ready for review October 28, 2025 07:30
@Standing-Man Standing-Man requested a review from evenyag as a code owner October 28, 2025 07:30
@Standing-Man Standing-Man marked this pull request as draft October 29, 2025 05:04
@Standing-Man
Copy link
Contributor Author

Hi @killme2008 and @evenyag, I’ve fixed the SQLness test issue, PTAL.

@Standing-Man Standing-Man marked this pull request as ready for review October 29, 2025 07:22
Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Almost LGTM

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks a lot.

@evenyag evenyag enabled auto-merge November 7, 2025 13:18
@evenyag
Copy link
Contributor

evenyag commented Nov 7, 2025

I merged the main branch to see if CI can pass.

@evenyag evenyag added this pull request to the merge queue Nov 7, 2025
Merged via the queue into GreptimeTeam:main with commit 910a383 Nov 7, 2025
43 checks passed
@Standing-Man
Copy link
Contributor Author

Thanks to all the reviewers for your valuable suggestions!

WenyXu pushed a commit to WenyXu/greptimedb that referenced this pull request Nov 11, 2025
* feat(expr): support vec_elem_avg function

Signed-off-by: Alan Tang <[email protected]>

* feat: support vec_avg function

Signed-off-by: Alan Tang <[email protected]>

* test: add more query test for avg aggregator

Signed-off-by: Alan Tang <[email protected]>

* fix: fix the merge batch mode

Signed-off-by: Alan Tang <[email protected]>

* refactor: use sum and count as state for avg function

Signed-off-by: Alan Tang <[email protected]>

* refactor: refactor merge batch mode for avg function

Signed-off-by: Alan Tang <[email protected]>

* feat: add additional vector restrictions for validation

Signed-off-by: Alan Tang <[email protected]>

---------

Signed-off-by: Alan Tang <[email protected]>
Co-authored-by: Yingwen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required This change does not impact docs. size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants