Skip to content

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

Open
huan233usc wants to merge 1 commit into
apache:mainfrom
huan233usc:cli-stdin-doc-wording
Open

docs: clarify stdin store buffers on construction, not first use#23060
huan233usc wants to merge 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant