From e13670e6bfc7770502f6a36363f15c15756526d6 Mon Sep 17 00:00:00 2001 From: Yanxin Xiang Date: Mon, 12 Feb 2024 10:22:42 -0600 Subject: [PATCH] abandon useless schema --- datafusion/core/tests/dataframe/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/datafusion/core/tests/dataframe/mod.rs b/datafusion/core/tests/dataframe/mod.rs index 33dc15df4b13..f650e9e39d88 100644 --- a/datafusion/core/tests/dataframe/mod.rs +++ b/datafusion/core/tests/dataframe/mod.rs @@ -1489,11 +1489,6 @@ async fn test_read_batches_empty() -> Result<()> { let state = SessionState::new_with_config_rt(config, runtime); let ctx = SessionContext::new_with_state(state); - let _schema = Arc::new(Schema::new(vec![ - Field::new("id", DataType::Int32, false), - Field::new("number", DataType::Float32, false), - ])); - let batches = vec![]; let df = ctx.read_batches(batches).unwrap(); df.clone().show().await.unwrap();