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

Function read_limit

datafusion/core/src/datasource/file_format/csv.rs:228–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227 #[tokio::test]
228 async fn read_limit() -> Result<()> {
229 let session_ctx = SessionContext::new();
230 let state = session_ctx.state();
231 let task_ctx = session_ctx.task_ctx();
232 let projection = Some(vec![0, 1, 2, 3]);
233 let exec =
234 get_exec(&state, "aggregate_test_100.csv", projection, Some(1), true).await?;
235 let batches = collect(exec, task_ctx).await?;
236 assert_eq!(1, batches.len());
237 assert_eq!(4, batches[0].num_columns());
238 assert_eq!(1, batches[0].num_rows());
239
240 Ok(())
241 }
242
243 #[tokio::test]
244 async fn infer_schema() -> Result<()> {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
get_execFunction · 0.70
collectFunction · 0.50
stateMethod · 0.45
task_ctxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…