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

Function make_input

datafusion/expr/src/expr_rewriter/order_by.rs:514–527  ·  view source on GitHub ↗

Scan of a table: t(c1 int, c2 varchar, c3 float)

()

Source from the content-addressed store, hash-verified

512
513 /// Scan of a table: t(c1 int, c2 varchar, c3 float)
514 fn make_input() -> LogicalPlanBuilder {
515 let schema = Arc::new(Schema::new(vec![
516 Field::new("c1", DataType::Int32, true),
517 Field::new("c2", DataType::Utf8, true),
518 Field::new("c3", DataType::Float64, true),
519 ]));
520 let projection = None;
521 LogicalPlanBuilder::scan(
522 "t",
523 Arc::new(LogicalTableSource::new(schema)),
524 projection,
525 )
526 .unwrap()
527 }
528
529 fn sort(expr: Expr) -> Sort {
530 let asc = true;

Calls 2

newFunction · 0.85
scanFunction · 0.50

Used in the wild real call sites across dependent graphs

searching dependent graphs…