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

Method write_json

datafusion/core/src/execution/context/json.rs:65–71  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

63
64 /// Executes a query and writes the results to a partitioned JSON file.
65 pub async fn write_json(
66 &self,
67 plan: Arc<dyn ExecutionPlan>,
68 path: impl AsRef<str>,
69 ) -> Result<()> {
70 plan_to_json(self.task_ctx(), plan, path).await
71 }
72}

Callers

nothing calls this directly

Calls 2

plan_to_jsonFunction · 0.50
task_ctxMethod · 0.45

Tested by

no test coverage detected