Repository navigation
Support Read Limits for Streaming Queries - #116531
Michicosun wants to merge 8 commits into
Conversation
|
Workflow [PR], commit [3d28a05] Summary: ❌
AI ReviewSummaryThis PR moves Findings❌ Blockers
Tests
Final VerdictStatus: Minimum required actions:
LLVM Coverage ReportMeasured on commit 3d28a05.
Changed lines: Changed C/C++ lines covered: 118/127 (92.91%) · Uncovered code |
cd72bd3 to
3d93866
Compare
| } | ||
|
|
||
| auto chunk = input.pull(/*set_not_needed=*/true); | ||
| read_progress.accountChunk(chunk); |
There was a problem hiding this comment.
StreamReadProgress here is counting the final read-round output, not the source-side read progress that max_rows_to_read / max_bytes_to_read / max_rows_to_read_leaf / max_bytes_to_read_leaf are defined on. buildPartitionReadingPipeline applies PREWHERE / row-policy filters and the final projection before these chunks reach MergeTreeCommitOrderSource, and watermark queries read a second metadata stream that never passes through this counter at all. A STREAM ... WATERMARK ... PREWHERE ... SETTINGS max_rows_to_read = 10 query can therefore read far more than 10 physical rows without tripping isReadLimitReached. I think the outer check needs to consume the existing source progress (ProcessListElement::getProgressIn() / ReadProgressCallback) instead of emitted chunks.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes9 object files changed (+46.42 KiB total), 1 added.
737 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units1073 translation units recompiled, 7459 s compile time in total, 1072 of them have a recent master baseline. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch supports the usage of
max_rows_to_read,max_bytes_to_read,max_rows_to_read_leaf, andmax_bytes_to_read_leafsettings with streaming queries.Workflow [PR]
Sync PR [sync-upstream/pr/116531]