Skip to content

Apache DataFusion SQL Query Engine

MINOR: add some comments about intended use of ChunkedStore (#4541)

Andrew Lamb4c1f60c6a02c
diff --git a/datafusion/core/src/physical_plan/file_format/chunked_store.rs b/datafusion/core/src/physical_plan/file_format/chunked_store.rs
index 2af3f1211c..49f5e5a93a 100644
--- a/datafusion/core/src/physical_plan/file_format/chunked_store.rs
+++ b/datafusion/core/src/physical_plan/file_format/chunked_store.rs
@@ -28,6 +28,13 @@ use std::sync::Arc;
use tokio::io::{AsyncReadExt, AsyncWrite, BufReader};
/// Wraps a [`ObjectStore`] and makes its get response return chunks
+/// in a controllable manner.
+///
+/// A `ChunkedStore` makes the memory consumption and performance of
+/// the wrapped [`ObjectStore`] worse. It is intended for use within
+/// tests, to control the chunks in the produced output streams. For
+/// example, it is used to verify the delimiting logic in
+/// newline_delimited_stream.
///
/// TODO: Upstream into object_store_rs
#[derive(Debug)]