MCPcopy Create free account
hub / github.com/apache/datafusion / limit_by_expr

Method limit_by_expr

datafusion/expr/src/logical_plan/builder.rs:669–675  ·  view source on GitHub ↗

Limit the number of rows returned Similar to `limit` but uses expressions for `skip` and `fetch`

(self, skip: Option<Expr>, fetch: Option<Expr>)

Source from the content-addressed store, hash-verified

667 ///
668 /// Similar to `limit` but uses expressions for `skip` and `fetch`
669 pub fn limit_by_expr(self, skip: Option<Expr>, fetch: Option<Expr>) -> Result<Self> {
670 Ok(Self::new(LogicalPlan::Limit(Limit {
671 skip: skip.map(Box::new),
672 fetch: fetch.map(Box::new),
673 input: self.plan,
674 })))
675 }
676
677 /// Apply an alias
678 pub fn alias(self, alias: impl Into<TableReference>) -> Result<Self> {

Callers 4

limitMethod · 0.80
delete_to_planMethod · 0.80
limitMethod · 0.80
from_fetch_relFunction · 0.80

Calls 3

newFunction · 0.85
LimitClass · 0.85
mapMethod · 0.45

Tested by

no test coverage detected