Repository navigation
fix: return aggregate configuration errors - #28927
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
285aa0b to
4548ffa
Compare
d2476ef to
4447969
Compare
|
Updated head: Root cause of the prior Ubuntu/Coverage UT failure was a PR regression: ordered Focused post-rebase compile/config and DESC/NaN tests pass; changed-package golangci-lint reports 0 issues. The new remote CI run is pending. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep review completed for exact head 4447969883024d5892710e2de56b93a9afdda9b0 (base 76e1a9bd9f75480ee76f686c43994f938a15a8d5).
结论:未发现有充分证据的 P0/P1/P2 blocker,当前实现达到 review 标准。
已核对:
- aggregate/window/time-window 都在构建 child scope 前执行配置校验,错误直接返回;
- approx_percentile 保留
EncodeApproxPercentileConfig(config, descending),DESC/ASC、NaN、边界值和 legacy 行为没有发现回归; - 临时 vector/resource 有释放,编译失败路径沿现有 scope cleanup 链退出;
operator_test.go的 compile-path 测试覆盖了 aggregate/window/time-window 三条真实入口,不只是 helper;- 当前 head 的 CI:required、SCA、UT、coverage、build 和 pessimistic multi-CN BVT 均通过;Upgrade CI skipped。
Non-blocking follow-ups:
constructAggregateConfig的 legacy wrapper 仍会 panic;目前合法 SQL 路径会先经过validateAggregateConfigs,未发现可绕过预校验的具体路径。TestConstructAggregateConfigPropagatesConfigExpressionErrors当前 invalid expression 先被 constant-check 拒绝,尚未单独证明 executor 求值错误的传播;可后续补一条真正触发求值错误的用例。
Fixes matrixorigin#28870 Root cause: invalid percentile and aggregate configuration paths panicked during physical operator construction, leaking implementation frames to callers. This patch makes configuration validation error-bearing and performs validation before building child scopes for aggregate, window, and time-window operators. It adds invalid, nonconstant, unsupported-type, expression-error, and legacy configuration controls. Validation: compile ordinary and race tests; changed-line coverage 46/55 (83.64%); incremental SCA 0 issues.
Fixes matrixorigin#28870 Root cause: invalid percentile and aggregate configuration paths panicked during physical operator construction, leaking implementation frames to callers. This patch makes configuration validation error-bearing and performs validation before building child scopes for aggregate, window, and time-window operators. It adds invalid, nonconstant, unsupported-type, expression-error, and legacy configuration controls. Validation: compile ordinary and race tests; changed-line coverage 46/55 (83.64%); incremental SCA 0 issues.
Fixes #28870
Root cause: invalid percentile and aggregate configuration paths panicked during physical operator construction, leaking implementation frames to callers.
This patch makes configuration validation error-bearing and performs validation before building child scopes for aggregate, window, and time-window operators. It adds invalid, nonconstant, unsupported-type, expression-error, and legacy configuration controls.
Validation: compile ordinary and race tests; changed-line coverage 46/55 (83.64%); incremental SCA 0 issues.