Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8265

[Rust] [DataFusion] Table API collect() should not require context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Rust, Rust - DataFusion
    • None

    Description

      The Table API requires the context to be passed into the collect() method which leads to this odd code.

      let results = ctx.table("alltypes_plain")?
          .filter(col("c12").gt(&lit_f64(0.5)))?
          .aggregate(vec![col("c1")], vec![min(col("c12"))])?
          .collect(&mut ctx, 1024)?; 

      Since the table comes from the context, it should not be necessary to pass the context back in.

      Attachments

        Activity

          People

            andygrove Andy Grove
            andygrove Andy Grove
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: