docs(subscription): document multi-row cursor fetch and non-blocking short-read behavior#1071
docs(subscription): document multi-row cursor fetch and non-blocking short-read behavior#1071
Conversation
…short-read behavior Co-authored-by: kwannoel <47273164+kwannoel@users.noreply.github.com>
Docs PR Audit Report — PR #1071Title: docs(subscription): document multi-row cursor fetch and non-blocking short-read behavior Findings
VerdictRecommendation: ✅ OK to merge (after draft finalization) Audited by @desginer-and-reviewer using the docs review process |
|
The doc audit report is amazing. Is it a automated process? |
There was a problem hiding this comment.
Pull request overview
Updates the subscription cursor documentation to explicitly describe multi-row FETCH n behavior and to better align the blocking/non-blocking semantics with concrete SQL examples, addressing ambiguity raised in issue #2239.
Changes:
- Documented
FETCH n FROM <cursor>(and clarifiedFETCH NEXTvs multi-row fetch) in the non-blocking section. - Added a concrete multi-row fetch example with sample output to demonstrate short-read semantics.
- Updated blocking fetch documentation to include
FETCH n ... WITH (timeout = ...)syntax and consistentnwording.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Golem <44337247+cyberchen98@users.noreply.github.com>
|
Cross-review (Round 2) by @implementor: I re-reviewed this PR independently (after @desginer-and-reviewer) and checked current diff scope + consistency with related docs/code context.
If useful, I can help prepare a consolidation patch for overlapping PR groups to reduce maintainer load. |
Yes, I will make the prompt into agents.md |
Description
The subscription cursor docs only showed
FETCH NEXTand vaguely referenced "N rows" in the blocking section without a matching SQL example — leaving users unsure whetherFETCH n FROM <cursor>is valid syntax.Non-blocking fetch section:
FETCH n FROM cursor_name;alongsideFETCH NEXTFETCH NEXT≡FETCH 1n), or empty immediately if noneFETCH 10 FROM cur;example with sample outputBlocking fetch section:
FETCH n FROM cursor_name WITH (timeout = '1s');to align syntax with proseNwith backtick-wrappednconsistent with the syntax blockExamples section:
FETCH 10 FROM cur;retrieving bothUpdateDelete+UpdateInsertrows from a singleUPDATEin one callFETCH NEXTvariant as an alternativeRelated code PR
N/A
Related doc issue
https://github.com/risingwavelabs/risingwave-docs/issues/2239
Checklist
mint.jsonto include the page in the table of contents.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.