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

Function register_non_json_file

datafusion/core/tests/dataframe/mod.rs:6314–6327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6312
6313#[tokio::test]
6314async fn register_non_json_file() {
6315 let ctx = SessionContext::new();
6316 let err = ctx
6317 .register_json(
6318 "data",
6319 "tests/data/test_binary.parquet",
6320 JsonReadOptions::default(),
6321 )
6322 .await;
6323 assert_contains!(
6324 err.unwrap_err().to_string(),
6325 "test_binary.parquet' does not match the expected extension '.json'"
6326 );
6327}
6328
6329#[tokio::test]
6330async fn register_non_csv_file() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
register_jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…