Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible typo in appender test case #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/appender/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mod test {
let schema = Schema::new(vec![
Field::new("id", DataType::Int8, true),
Field::new("area", DataType::Int8, true),
Field::new("area", DataType::Utf8, true),
Field::new("name", DataType::Utf8, true),
]);
let record_batch = RecordBatch::try_new(
Arc::new(schema),
Expand All @@ -74,7 +74,7 @@ mod test {
let mut app = db.appender("foo")?;
app.append_record_batch(record_batch)?;
}
let mut stmt = db.prepare("SELECT id, area,name FROM foo")?;
let mut stmt = db.prepare("SELECT id, area, name FROM foo")?;
let rbs: Vec<RecordBatch> = stmt.query_arrow([])?.collect();
assert_eq!(rbs.iter().map(|op| op.num_rows()).sum::<usize>(), 5);
Ok(())
Expand Down