You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/04/20 01:25:58 UTC
(datafusion) branch gh-readonly-queue/main/pr-21713-03ca0aa3019ec1b118bb25dccadc469ebe6aa986 created (now 3aaf393fe3)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a change to branch gh-readonly-queue/main/pr-21713-03ca0aa3019ec1b118bb25dccadc469ebe6aa986
in repository https://gitbox.apache.org/repos/asf/datafusion.git
at 3aaf393fe3 minor: More comments to `read_spill_as_stream` (#21713)
This branch includes the following new commits:
new 3aaf393fe3 minor: More comments to `read_spill_as_stream` (#21713)
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org
(datafusion) 01/01: minor: More comments to `read_spill_as_stream` (#21713)
Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-21713-03ca0aa3019ec1b118bb25dccadc469ebe6aa986
in repository https://gitbox.apache.org/repos/asf/datafusion.git
commit 3aaf393fe32e30ec818b9cfab99a08326f1cad2c
Author: Yongting You <20...@gmail.com>
AuthorDate: Mon Apr 20 09:25:34 2026 +0800
minor: More comments to `read_spill_as_stream` (#21713)
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes #123` indicates that this PR will close issue #123.
-->
- Closes #.
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->
Clarifying a function with more comments
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
---
datafusion/physical-plan/src/spill/spill_manager.rs | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/datafusion/physical-plan/src/spill/spill_manager.rs b/datafusion/physical-plan/src/spill/spill_manager.rs
index c81c01bbe3..1664256e65 100644
--- a/datafusion/physical-plan/src/spill/spill_manager.rs
+++ b/datafusion/physical-plan/src/spill/spill_manager.rs
@@ -160,9 +160,22 @@ impl SpillManager {
Ok(file.map(|f| (f, max_record_batch_size)))
}
- /// Reads a spill file as a stream. The file must be created by the current `SpillManager`.
- /// This method will generate output in FIFO order: the batch appended first
- /// will be read first.
+ /// Reads a spill file as a stream. The file must be created by the current
+ /// `SpillManager`; otherwise behavior is undefined.
+ ///
+ /// Output is produced in FIFO order: the batch appended first is read first.
+ ///
+ /// # Arg `max_record_batch_memory`
+ ///
+ /// Most callers should pass `None`. This is mainly useful for the
+ /// memory-limited sort-preserving merge path.
+ ///
+ /// When provided, this value is used only as a validation hint. If a
+ /// decoded batch exceeds this threshold, a debug-level log message is
+ /// emitted.
+ ///
+ /// That path uses the maximum spilled batch size to conservatively estimate
+ /// the merge degree when merging multiple sorted runs.
pub fn read_spill_as_stream(
&self,
spill_file_path: RefCountedTempFile,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org