Skip to content

Apache DataFusion SQL Query Engine

chore(docs): Fix the documentation for TableProvider::scan()'s `limit` argument (#25397)

Martin Grigorove5469e157079
diff --git a/datafusion/session/src/table.rs b/datafusion/session/src/table.rs
index a6cddd10ce..1fe5d7d26e 100644
--- a/datafusion/session/src/table.rs
+++ b/datafusion/session/src/table.rs
@@ -150,8 +150,8 @@ pub trait TableProvider: Any + Debug + Sync + Send {
///
/// # Limit
///
- /// If `limit` is specified, the scan must produce *at least* this many
- /// rows, though it may return more. Like Projection Pushdown and Filter
+ /// If `limit` is specified, the scan must produce *at most* this many
+ /// rows, though it may return less. Like Projection Pushdown and Filter
/// Pushdown, DataFusion pushes `LIMIT`s as far down in the plan as
/// possible. This is called "Limit Pushdown", and some sources can use the
/// information to improve performance.