Skip to content

Commit dfa59fa

Browse files
author
John Hughes
authored
Update arrow2 to 0.15 (#89)
1 parent 02db5dd commit dfa59fa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

arrow2_convert/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/DataEngineeringLabs/arrow2-convert"
1212
description = "Convert between nested rust types and Arrow with arrow2"
1313

1414
[dependencies]
15-
arrow2 = "0.14.1"
15+
arrow2 = "0.15"
1616
arrow2_convert_derive = { version = "0.3.2", path = "../arrow2_convert_derive", optional = true }
1717
chrono = { version = "0.4", default_features = false, features = ["std"] }
1818
err-derive = "0.3"

arrow2_convert_derive/src/derive_enum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn expand_serialize(input: DeriveEnum) -> TokenStream {
327327
<#mutable_variant_array_types as arrow2::array::MutableArray>::as_box(&mut self.#variant_names),
328328
)*];
329329

330-
Box::new(arrow2::array::UnionArray::from_data(
330+
Box::new(arrow2::array::UnionArray::new(
331331
<#original_name as arrow2_convert::field::ArrowField>::data_type().clone(),
332332
std::mem::take(&mut self.types).into(),
333333
values,
@@ -340,7 +340,7 @@ pub fn expand_serialize(input: DeriveEnum) -> TokenStream {
340340
<#mutable_variant_array_types as arrow2::array::MutableArray>::as_box(&mut self.#variant_names),
341341
)*];
342342

343-
std::sync::Arc::new(arrow2::array::UnionArray::from_data(
343+
std::sync::Arc::new(arrow2::array::UnionArray::new(
344344
<#original_name as arrow2_convert::field::ArrowField>::data_type().clone(),
345345
std::mem::take(&mut self.types).into(),
346346
values,

arrow2_convert_derive/src/derive_struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub fn expand_serialize(input: DeriveStruct) -> TokenStream {
217217
<#mutable_field_array_types as arrow2::array::MutableArray>::as_box(&mut self.#field_names),
218218
)*];
219219

220-
Box::new(arrow2::array::StructArray::from_data(
220+
Box::new(arrow2::array::StructArray::new(
221221
<#original_name as arrow2_convert::field::ArrowField>::data_type().clone(),
222222
values,
223223
std::mem::take(&mut self.validity).map(|x| x.into()),
@@ -229,7 +229,7 @@ pub fn expand_serialize(input: DeriveStruct) -> TokenStream {
229229
<#mutable_field_array_types as arrow2::array::MutableArray>::as_box(&mut self.#field_names),
230230
)*];
231231

232-
std::sync::Arc::new(arrow2::array::StructArray::from_data(
232+
std::sync::Arc::new(arrow2::array::StructArray::new(
233233
<#original_name as arrow2_convert::field::ArrowField>::data_type().clone(),
234234
values,
235235
std::mem::take(&mut self.validity).map(|x| x.into())

examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
arrow2 = "0.14"
9+
arrow2 = "0.15"
1010
arrow2_convert = { version = "0.3", path = "../../arrow2_convert" }

0 commit comments

Comments
 (0)