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

Method write_csv

datafusion/core/src/execution/context/csv.rs:87–93  ·  view source on GitHub ↗

Executes a query and writes the results to a partitioned CSV file.

(
        &self,
        plan: Arc<dyn ExecutionPlan>,
        path: impl AsRef<str>,
    )

Source from the content-addressed store, hash-verified

85
86 /// Executes a query and writes the results to a partitioned CSV file.
87 pub async fn write_csv(
88 &self,
89 plan: Arc<dyn ExecutionPlan>,
90 path: impl AsRef<str>,
91 ) -> Result<()> {
92 plan_to_csv(self.task_ctx(), plan, path).await
93 }
94}
95
96#[cfg(test)]

Callers 2

read_from_parquet_folderFunction · 0.45

Calls 2

plan_to_csvFunction · 0.85
task_ctxMethod · 0.45

Tested by

no test coverage detected