Skip to content

test: guard aggregate input behavior on 4.2 - #32376

Merged
XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/backport-32372-32368-4.2
Nov 8, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/backport-32372-32368-4.2

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

Which issue(s) this PR fixes:

Refs #32373, #32369, #32372 and #32368.

What this PR does / why we need it:

Add 4.2 regression coverage for the aggregate input contracts addressed by the two main-branch PRs. Their production patches do not apply to the current 4.2 implementation:

  • MIN/MAX discard DISTINCT without adding the main branch's DISTINCT-only PAD SPACE normalization. The SQL case checks exact returned bytes, NULL/empty inputs, and prepared execution; a planner test checks that DISTINCT preserves the bound input.
  • Group evaluates a batch once and returns build/evaluation errors; it spills after a complete batch rather than retrying a partially processed batch. Tests inject capacity errors during evaluation and after one completed hash chunk, and exercise ordinary spill/reload with exact results and evaluation counts. The errors are synthetic; this branch does not have the upstream capacity-recovery path.

There are no production-code or query hot-path changes.

Validation on 4.2-dev base 0351bc89d7478ccd908fbc7b084ff0dd71a0ee80 (Go 1.26.4, Linux/amd64):

  • Full normal tests for pkg/sql/plan and pkg/sql/colexec/group; focused new tests in normal and race modes passed.
  • Local single-CN SQL: exact trailing-space bytes and session-mode restoration verified. The 19-statement BVT passed in normal comparison and with CI flags on the same instance; database teardown was checked after each run.
  • Incremental gofmt, go vet, and golangci-lint v2.6.2 passed for the two changed Go packages. Pinned molint emitted three pre-existing checkrecover diagnostics, identical on a clean copy of the base; it reported no new diagnostics.
  • The BVT took approximately 0.07 seconds per local comparison run. CI remains pending.

@XuPeng-SH
XuPeng-SH requested a review from aunjgr as a code owner November 8, 2026 17:21
@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 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

mo-bot review · mo-bot-local · done

Commit: 69eebaa70e82c1d19c5430f26737b232d9c81286

Review completed. Read the assessment.

@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.

mo-bot review · mo-bot-local · review

Commit: 69eebaa70e82c1d19c5430f26737b232d9c81286

Assessment: approve

The tests guard existing 4.2 aggregate-input behavior with complementary planner, SQL and Group error/spill oracles. They reuse existing fixtures and add no production mechanisms. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0

Validation:

  • Reviewed all four changed files, relevant owners/consumers, linked issue context and both discussion entries.

  • Local preflight, native builds, formatting and source/provenance checks passed. Fixture checks matched all 19 SQL statements and independently verified six expected byte/NULL result blocks.

  • Accepted matching author reports of full-package normal tests, focused normal/race tests, SQL/BVT and incremental static checks. Local receipts and logs are reconciled in validation-ledger.json.

Limitations:

  • The recovered focused Go test attempt timed out after 240 seconds downloading modules; no product tests executed locally.

  • Author raw execution logs were unavailable, and SQL/BVT was not rerun locally. Four core CI checks remain in progress in the frozen snapshot.

This branch was successfully deployed

No deployments
ci — 62c1caf4 Deployed Nov 8, 2026 by XuPeng-SH
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