Repository navigation
feat: expose immutable query limits across API and CLI - #244
Merged
Merged
Conversation
This was referenced Oct 11, 2026
Closed
Owner
Author
检视结论:approve对照 #239:默认仍 100k 行 / 64 MiB / 512 MiB scratch;immutable 复测:124 passed;defaults 断言 OK;gates OK。本评论不 approve/merge。 |
codeasier
marked this pull request as ready for review
October 11, 2026 05:59
codeasier
added a commit
that referenced
this pull request
Oct 11, 2026
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
范围
Refs #239 的公共预算配置部分;ID 深分页在独立 PR,不关闭整个 issue。
新增 immutable QueryLimits,统一 API/QueryService/SnapshotAnalyzer/ReportService 与 query/report CLI。按字段 explicit > environment > default,公开有效限额及错误信息。配置与可变计数分离:独立调用重建计数,组合 report 共享累计预算/deadline。
默认仍为 100,000 rows、64 MiB work bytes、512 MiB scratch pages;rows/bytes 仅正整数,不引入无限值。scratch=0 禁用,非零沿用4096 bytes–4 GiB。超限仍硬失败,不返回部分全局结论。提高预算会增加资源风险,双语文档说明。
验证
基线 main
ffa71df0ddf0fb5f17a904f4092898a27287d21e;审核 tree08345549303892c314856dd1ad1d68f111ec7fe3。本地全套集成、coverage、精确 wheel 与远端完整 CI 继续验证,未将未执行步骤称通过。保留草稿,不自动合并。