Skip to content

docs: clarify stdin store buffers on construction, not first use#23060

Merged
alamb merged 1 commit into
apache:mainfrom
huan233usc:cli-stdin-doc-wording
Jun 22, 2026
Merged

docs: clarify stdin store buffers on construction, not first use#23060
alamb merged 1 commit into
apache:mainfrom
huan233usc:cli-stdin-doc-wording

Conversation

@huan233usc

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Follow-up to #22839 (stdin support in datafusion-cli), addressing post-merge review feedback from @alamb. No separate issue.

Rationale for this change

In the review of #22839, @alamb noted that the StdinUtils::get_or_create doc comment was technically imprecise:

technically I would say this buffers stdin on construction, not first use.

The stdin:// store reads and buffers all of standard input eagerly when the store is constructed (object_storeread_to_endin_memory_object_store), not lazily on first use of the store. The doc comment said "on first use", which suggests lazy buffering.

What changes are included in this PR?

Reword the first sentence of the get_or_create doc comment to say the store buffers all of standard input "when the store is first constructed" instead of "on first use". Doc-comment only; no behavior change.

Are these changes tested?

No code change — documentation only. Existing tests in object_storage/stdin.rs are unaffected.

Are there any user-facing changes?

No.

Address review feedback on apache#22839: the `stdin://` store reads and
buffers all of standard input eagerly when the store is constructed,
not lazily on first use. Reword the get_or_create doc comment to say so.

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @huan233usc 🙏

@alamb alamb added the documentation Improvements or additions to documentation label Jun 22, 2026
@alamb alamb added this pull request to the merge queue Jun 22, 2026
Merged via the queue into apache:main with commit 17bb6d8 Jun 22, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants