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

[Rust][DataFusion] Expose collect_partitioned for DataFrame

    XMLWordPrintableJSON

Details

    Description

      The DataFrame API has a `collect` method which invokes the `collect(plan: Arc<dyn ExecutionPlan>) -> Result<Vec<RecordBatch>>` function which will collect records into a single vector of RecordBatches removing the partitioning via `MergeExec`.

      The DataFrame should also expose the `collect_partitioned` method so that partitions can be maintained.

      ```
      collect_partitioned(
      plan: Arc<dyn ExecutionPlan>,
      ) -> Result<Vec<Vec<RecordBatch>>>
      ```

      Attachments

        Issue Links

          Activity

            People

              MikeSeddonAU Mike Seddon
              MikeSeddonAU Mike Seddon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m