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

Function register_aggregate_csv

datafusion/core/tests/sql/mod.rs:113–123  ·  view source on GitHub ↗
(ctx: &SessionContext)

Source from the content-addressed store, hash-verified

111}
112
113async fn register_aggregate_csv(ctx: &SessionContext) -> Result<()> {
114 let testdata = test_util::arrow_test_data();
115 let schema = test_util::aggr_test_schema();
116 ctx.register_csv(
117 "aggregate_test_100",
118 &format!("{testdata}/csv/aggregate_test_100.csv"),
119 CsvReadOptions::new().schema(&schema),
120 )
121 .await?;
122 Ok(())
123}
124
125/// Execute SQL and return results as a RecordBatch
126async fn plan_and_collect(ctx: &SessionContext, sql: &str) -> Result<Vec<RecordBatch>> {

Calls 5

arrow_test_dataFunction · 0.85
newFunction · 0.85
aggr_test_schemaFunction · 0.50
register_csvMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…