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

Method register_json

datafusion/core/tests/datasource/object_store_access.rs:1110–1117  ·  view source on GitHub ↗

Register a JSON (NDJSON) file at the given path

(self, table_name: &str, path: &str)

Source from the content-addressed store, hash-verified

1108
1109 /// Register a JSON (NDJSON) file at the given path
1110 async fn register_json(self, table_name: &str, path: &str) -> Self {
1111 let url = format!("mem://{path}");
1112 self.session_context
1113 .register_json(table_name, url, JsonReadOptions::default())
1114 .await
1115 .unwrap();
1116 self
1117 }
1118
1119 /// Register a partitioned JSON table at the given path
1120 async fn register_partitioned_json(self, table_name: &str, path: &str) -> Self {

Callers 5

with_single_file_jsonMethod · 0.45
with_multi_file_jsonMethod · 0.45
write_json_with_orderFunction · 0.45
register_non_json_fileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected