Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed May 19, 2018
1 parent 236fde8 commit 3289e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/examples/dynamic_types.rs
Expand Up @@ -43,7 +43,7 @@ fn main() {
let id = PrimitiveArray::from(vec![1, 2, 3, 4, 5]);

let nested = StructArray::from(vec![
Rc::new(PrimitiveArray::from(vec!["a", "b", "c", "d", "e"])) as Rc<Array>,
Rc::new(ListArray::from(vec!["a", "b", "c", "d", "e"])) as Rc<Array>,
Rc::new(PrimitiveArray::from(vec![1.1, 2.2, 3.3, 4.4, 5.5])),
Rc::new(PrimitiveArray::from(vec![2.2, 3.3, 4.4, 5.5, 6.6])),
]);
Expand Down
2 changes: 1 addition & 1 deletion rust/src/record_batch.rs
Expand Up @@ -66,7 +66,7 @@ mod tests {
]);

let a = PrimitiveArray::from(vec![1, 2, 3, 4, 5]);
let b = PrimitiveArray::from(vec!["a", "b", "c", "d", "e"]);
let b = ListArray::from(vec!["a", "b", "c", "d", "e"]);

let record_batch = RecordBatch::new(Rc::new(schema), vec![Rc::new(a), Rc::new(b)]);

Expand Down

0 comments on commit 3289e3b

Please sign in to comment.