Push a row-limit hint down to scan planning. This allows paimon-core scan planning to generate fewer splits when the current scan state keeps split-level `merged_row_count()` conservative. Note: This method does not guarantee that exactly `limit` rows will be returned by [`TableRead`]. It is only a pushdown hint for planning. Callers or query engines are responsible for enforcing the final LIMIT
(&mut self, limit: usize)
| 210 | /// returned by [`TableRead`]. It is only a pushdown hint for planning. |
| 211 | /// Callers or query engines are responsible for enforcing the final LIMIT. |
| 212 | pub fn with_limit(&mut self, limit: usize) -> &mut Self { |
| 213 | self.limit = Some(limit); |
| 214 | self |
| 215 | } |
| 216 | |
| 217 | /// Create a table scan. Call [TableScan::plan] to get splits. |
| 218 | pub fn new_scan(&self) -> TableScan<'a> { |
no outgoing calls