Skip to content

test(function): cover GROUP_CONCAT spill and consolidate lock BVT - #28801

Merged
XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/test-global-groupconcat-quality-20260913
Sep 13, 2026
Merged

XuPeng-SH merged 3 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/test-global-groupconcat-quality-20260913

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Related to #28653, #28249, and #28250. This PR only changes regression tests; it does not itself fix or close these issues. The GROUP_CONCAT production fix was merged in #28702, and the user-level lock behavior fix was merged in #28783.

What this PR does / why we need it:

This test-only follow-up consolidates related SQL-function coverage while preserving distinct test oracles:

  • Keeps the existing 70,000-byte text case and adds exact-output JSON and float32-vector cases through the real GROUP_CONCAT ordered-spill path. JSON and vector rendered outputs are each 65,536 bytes. The test asserts spill occurred before flush, checks complete output bytes, and verifies memory-pool cleanup.
  • Moves the three unique free-lock timeout-type probes (DOUBLE 0, DECIMAL 0.5, and DOUBLE 0.5) into the broader user_lock.sql case, then removes the duplicate func_user_lock.test/.result. Existing lock lifecycle, contention, NULL-name, NULL-timeout, and case-insensitive checks remain. The precise DECIMAL-vs-DOUBLE rounding behavior remains owned by TestGetLockDecimalTimeoutUsesDecimalRounding.
  • Removes one adjacent, identical basic GROUP_CONCAT SELECT and its duplicate expected-output block. The first assertion remains; this was not a controlled cache/reuse test, and no measured runtime improvement is claimed.

No production code or behavior changes.

Test Plan

  • Focused CGo UTs: TestGroupConcatLargeValuesAcrossOrderedSpill, TestAppendGroupConcatDataCoversTypes, and TestGroupConcatVectorValuesAcrossFinalizers — PASS.
  • Full ./pkg/sql/colexec/aggexec test package — PASS (1.346s).
  • go vet -mod=readonly ./pkg/sql/colexec/aggexec with repository-matched CGo flags — PASS.
  • Incremental golangci-lint for ./pkg/sql/colexec/aggexec against the PR base — 0 issues.
  • On 55, using a service built from current main 68860942354a7deb58158197e1e458d6094ec1bd in an isolated network namespace, ran each modified BVT twice with mo-tester:
    • user_lock.sql: 67/67 passed on both runs.
    • function_group_concat.sql: 228/228 passed on both runs.
  • gofmt and git diff --check — PASS.

QA can run the two BVT cases with ./run.sh -n -g -p <path-to-case.sql> against a test-owned MatrixOne instance. Both cases clean up their database/table state and were rerun successfully on the same isolated instance. CI was not awaited for this update.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH XuPeng-SH changed the title test(agg): cover large GROUP_CONCAT ordered spill output test(function): cover GROUP_CONCAT spill and consolidate lock BVT Sep 13, 2026

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

GPT-6 medium deep review at head b2775ab93bc91606942936c6969456ca6e2fd44e: no verified blockers or material test issues. Reviewed GROUP_CONCAT spill coverage, output correctness and cleanup, plus lock BVT consolidation. Exact-head PROXY CI selected both user_lock.sql and function_group_concat.sql; the changed test paths and referenced UT coverage are present.

@XuPeng-SH
XuPeng-SH merged commit 3586293 into matrixorigin:main Sep 13, 2026
15 of 19 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/test-global-groupconcat-quality-20260913 branch September 13, 2026 03:19
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…trixorigin#28801)

## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to matrixorigin#28653, matrixorigin#28249, and matrixorigin#28250. This PR only changes regression
tests; it does not itself fix or close these issues. The GROUP_CONCAT
production fix was merged in matrixorigin#28702, and the user-level lock behavior
fix was merged in matrixorigin#28783.

## What this PR does / why we need it:

This test-only follow-up consolidates related SQL-function coverage
while preserving distinct test oracles:

- Keeps the existing 70,000-byte text case and adds exact-output JSON
and float32-vector cases through the real GROUP_CONCAT ordered-spill
path. JSON and vector rendered outputs are each 65,536 bytes. The test
asserts spill occurred before flush, checks complete output bytes, and
verifies memory-pool cleanup.
- Moves the three unique free-lock timeout-type probes (DOUBLE `0`,
DECIMAL `0.5`, and DOUBLE `0.5`) into the broader `user_lock.sql` case,
then removes the duplicate `func_user_lock.test/.result`. Existing lock
lifecycle, contention, NULL-name, NULL-timeout, and case-insensitive
checks remain. The precise DECIMAL-vs-DOUBLE rounding behavior remains
owned by `TestGetLockDecimalTimeoutUsesDecimalRounding`.
- Removes one adjacent, identical basic GROUP_CONCAT SELECT and its
duplicate expected-output block. The first assertion remains; this was
not a controlled cache/reuse test, and no measured runtime improvement
is claimed.

No production code or behavior changes.

## Test Plan

- [x] Focused CGo UTs: `TestGroupConcatLargeValuesAcrossOrderedSpill`,
`TestAppendGroupConcatDataCoversTypes`, and
`TestGroupConcatVectorValuesAcrossFinalizers` — PASS.
- [x] Full `./pkg/sql/colexec/aggexec` test package — PASS (1.346s).
- [x] `go vet -mod=readonly ./pkg/sql/colexec/aggexec` with
repository-matched CGo flags — PASS.
- [x] Incremental `golangci-lint` for `./pkg/sql/colexec/aggexec`
against the PR base — 0 issues.
- [x] On 55, using a service built from current main
`68860942354a7deb58158197e1e458d6094ec1bd` in an isolated network
namespace, ran each modified BVT twice with mo-tester:
  - `user_lock.sql`: 67/67 passed on both runs.
  - `function_group_concat.sql`: 228/228 passed on both runs.
- [x] `gofmt` and `git diff --check` — PASS.

QA can run the two BVT cases with `./run.sh -n -g -p <path-to-case.sql>`
against a test-owned MatrixOne instance. Both cases clean up their
database/table state and were rerun successfully on the same isolated
instance. CI was not awaited for this update.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…trixorigin#28801)

## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to matrixorigin#28653, matrixorigin#28249, and matrixorigin#28250. This PR only changes regression
tests; it does not itself fix or close these issues. The GROUP_CONCAT
production fix was merged in matrixorigin#28702, and the user-level lock behavior
fix was merged in matrixorigin#28783.

## What this PR does / why we need it:

This test-only follow-up consolidates related SQL-function coverage
while preserving distinct test oracles:

- Keeps the existing 70,000-byte text case and adds exact-output JSON
and float32-vector cases through the real GROUP_CONCAT ordered-spill
path. JSON and vector rendered outputs are each 65,536 bytes. The test
asserts spill occurred before flush, checks complete output bytes, and
verifies memory-pool cleanup.
- Moves the three unique free-lock timeout-type probes (DOUBLE `0`,
DECIMAL `0.5`, and DOUBLE `0.5`) into the broader `user_lock.sql` case,
then removes the duplicate `func_user_lock.test/.result`. Existing lock
lifecycle, contention, NULL-name, NULL-timeout, and case-insensitive
checks remain. The precise DECIMAL-vs-DOUBLE rounding behavior remains
owned by `TestGetLockDecimalTimeoutUsesDecimalRounding`.
- Removes one adjacent, identical basic GROUP_CONCAT SELECT and its
duplicate expected-output block. The first assertion remains; this was
not a controlled cache/reuse test, and no measured runtime improvement
is claimed.

No production code or behavior changes.

## Test Plan

- [x] Focused CGo UTs: `TestGroupConcatLargeValuesAcrossOrderedSpill`,
`TestAppendGroupConcatDataCoversTypes`, and
`TestGroupConcatVectorValuesAcrossFinalizers` — PASS.
- [x] Full `./pkg/sql/colexec/aggexec` test package — PASS (1.346s).
- [x] `go vet -mod=readonly ./pkg/sql/colexec/aggexec` with
repository-matched CGo flags — PASS.
- [x] Incremental `golangci-lint` for `./pkg/sql/colexec/aggexec`
against the PR base — 0 issues.
- [x] On 55, using a service built from current main
`68860942354a7deb58158197e1e458d6094ec1bd` in an isolated network
namespace, ran each modified BVT twice with mo-tester:
  - `user_lock.sql`: 67/67 passed on both runs.
  - `function_group_concat.sql`: 228/228 passed on both runs.
- [x] `gofmt` and `git diff --check` — PASS.

QA can run the two BVT cases with `./run.sh -n -g -p <path-to-case.sql>`
against a test-owned MatrixOne instance. Both cases clean up their
database/table state and were rerun successfully on the same isolated
instance. CI was not awaited for this update.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
…trixorigin#28801)

## What type of PR is this?

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Related to matrixorigin#28653, matrixorigin#28249, and matrixorigin#28250. This PR only changes regression
tests; it does not itself fix or close these issues. The GROUP_CONCAT
production fix was merged in matrixorigin#28702, and the user-level lock behavior
fix was merged in matrixorigin#28783.

## What this PR does / why we need it:

This test-only follow-up consolidates related SQL-function coverage
while preserving distinct test oracles:

- Keeps the existing 70,000-byte text case and adds exact-output JSON
and float32-vector cases through the real GROUP_CONCAT ordered-spill
path. JSON and vector rendered outputs are each 65,536 bytes. The test
asserts spill occurred before flush, checks complete output bytes, and
verifies memory-pool cleanup.
- Moves the three unique free-lock timeout-type probes (DOUBLE `0`,
DECIMAL `0.5`, and DOUBLE `0.5`) into the broader `user_lock.sql` case,
then removes the duplicate `func_user_lock.test/.result`. Existing lock
lifecycle, contention, NULL-name, NULL-timeout, and case-insensitive
checks remain. The precise DECIMAL-vs-DOUBLE rounding behavior remains
owned by `TestGetLockDecimalTimeoutUsesDecimalRounding`.
- Removes one adjacent, identical basic GROUP_CONCAT SELECT and its
duplicate expected-output block. The first assertion remains; this was
not a controlled cache/reuse test, and no measured runtime improvement
is claimed.

No production code or behavior changes.

## Test Plan

- [x] Focused CGo UTs: `TestGroupConcatLargeValuesAcrossOrderedSpill`,
`TestAppendGroupConcatDataCoversTypes`, and
`TestGroupConcatVectorValuesAcrossFinalizers` — PASS.
- [x] Full `./pkg/sql/colexec/aggexec` test package — PASS (1.346s).
- [x] `go vet -mod=readonly ./pkg/sql/colexec/aggexec` with
repository-matched CGo flags — PASS.
- [x] Incremental `golangci-lint` for `./pkg/sql/colexec/aggexec`
against the PR base — 0 issues.
- [x] On 55, using a service built from current main
`68860942354a7deb58158197e1e458d6094ec1bd` in an isolated network
namespace, ran each modified BVT twice with mo-tester:
  - `user_lock.sql`: 67/67 passed on both runs.
  - `function_group_concat.sql`: 228/228 passed on both runs.
- [x] `gofmt` and `git diff --check` — PASS.

QA can run the two BVT cases with `./run.sh -n -g -p <path-to-case.sql>`
against a test-owned MatrixOne instance. Both cases clean up their
database/table state and were rerun successfully on the same isolated
instance. CI was not awaited for this update.

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants