You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Andy Grove (Jira)" <ji...@apache.org> on 2020/03/15 15:06:00 UTC

[jira] [Created] (ARROW-8123) [Rust] [DataFusion] Create LogicalPlanBuilder

Andy Grove created ARROW-8123:
---------------------------------

             Summary: [Rust] [DataFusion] Create LogicalPlanBuilder
                 Key: ARROW-8123
                 URL: https://issues.apache.org/jira/browse/ARROW-8123
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Rust, Rust - DataFusion
            Reporter: Andy Grove
            Assignee: Andy Grove
             Fix For: 1.0.0


Building logical plans is arduous and a builder would make this nicer. Example:
{code:java}
let plan = LogicalPlanBuilder::new()
    .scan(
        "default",
        "employee.csv",
        &employee_schema(),
        Some(vec![0, 3]),
    )?
    .filter(col(1).eq(&lit_str("CO")))?
    .project(vec![col(0)])?
    .build()?; {code}
Note that I am already working on this and will have a PR shortly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)