Skip to content

Commit

Permalink
provide schema when reading from csv
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jul 13, 2022
1 parent 3407ada commit 57c0cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/src/bin/h2o.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async fn group_by(opt: &GroupBy) -> Result<()> {
MemTable::load(Arc::new(csv), Some(partition_size), &ctx.state()).await?;
ctx.register_table("x", Arc::new(memtable))?;
} else {
ctx.register_csv("x", path, CsvReadOptions::default())
ctx.register_csv("x", path, CsvReadOptions::default().schema(&schema))
.await?;
}

Expand Down

0 comments on commit 57c0cab

Please sign in to comment.