Skip to content

Apache DataFusion SQL Query Engine

Update to arrow 36 (#5685)

Raphael Taylor-Daviesfeddb3c94d2b
diff --git a/Cargo.toml b/Cargo.toml
index 728a824689..c65d9b3560 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -46,12 +46,12 @@ repository = "https://github.com/apache/arrow-datafusion"
rust-version = "1.64"
[workspace.dependencies]
-arrow = { version = "34.0.0", features = ["prettyprint"] }
-arrow-flight = { version = "34.0.0", features = ["flight-sql-experimental"] }
-arrow-buffer = { version = "34.0.0", default-features = false }
-arrow-schema = { version = "34.0.0", default-features = false }
-arrow-array = { version = "34.0.0", default-features = false, features = ["chrono-tz"] }
-parquet = { version = "34.0.0", features = ["arrow", "async"] }
+arrow = { version = "36.0.0", features = ["prettyprint"] }
+arrow-flight = { version = "36.0.0", features = ["flight-sql-experimental"] }
+arrow-buffer = { version = "36.0.0", default-features = false }
+arrow-schema = { version = "36.0.0", default-features = false }
+arrow-array = { version = "36.0.0", default-features = false, features = ["chrono-tz"] }
+parquet = { version = "36.0.0", features = ["arrow", "async"] }
[profile.release]
codegen-units = 1
diff --git a/benchmarks/src/bin/tpch.rs b/benchmarks/src/bin/tpch.rs
index c3a3746736..86d2215dc2 100644
--- a/benchmarks/src/bin/tpch.rs
+++ b/benchmarks/src/bin/tpch.rs
@@ -150,11 +150,11 @@ async fn main() -> Result<()> {
let compression = match opt.compression.as_str() {
"none" => Compression::UNCOMPRESSED,
"snappy" => Compression::SNAPPY,
- "brotli" => Compression::BROTLI,
- "gzip" => Compression::GZIP,
+ "brotli" => Compression::BROTLI(Default::default()),
+ "gzip" => Compression::GZIP(Default::default()),
"lz4" => Compression::LZ4,
"lz0" => Compression::LZO,
- "zstd" => Compression::ZSTD,
+ "zstd" => Compression::ZSTD(Default::default()),
other => {
return Err(DataFusionError::NotImplemented(format!(
"Invalid compression format: {other}"
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index 6de8c98f39..49e2478d84 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -68,9 +68,9 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
[[package]]
name = "arrow"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f410d3907b6b3647b9e7bca4551274b2e3d716aa940afb67b7287257401da921"
+checksum = "990dfa1a9328504aa135820da1c95066537b69ad94c04881b785f64328e0fa6b"
dependencies = [
"ahash",
"arrow-arith",
@@ -86,14 +86,13 @@ dependencies = [
"arrow-schema",
"arrow-select",
"arrow-string",
- "comfy-table",
]
[[package]]
name = "arrow-arith"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f87391cf46473c9bc53dab68cb8872c3a81d4dfd1703f1c8aa397dba9880a043"
+checksum = "f2b2e52de0ab54173f9b08232b7184c26af82ee7ab4ac77c83396633c90199fa"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -106,9 +105,9 @@ dependencies = [
[[package]]
name = "arrow-array"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d35d5475e65c57cffba06d0022e3006b677515f99b54af33a7cd54f6cdd4a5b5"
+checksum = "e10849b60c17dbabb334be1f4ef7550701aa58082b71335ce1ed586601b2f423"
dependencies = [
"ahash",
"arrow-buffer",
@@ -123,9 +122,9 @@ dependencies = [
[[package]]
name = "arrow-buffer"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68b4ec72eda7c0207727df96cf200f539749d736b21f3e782ece113e18c1a0a7"
+checksum = "b0746ae991b186be39933147117f8339eb1c4bbbea1c8ad37e7bf5851a1a06ba"
dependencies = [
"half",
"num",
@@ -133,9 +132,9 @@ dependencies = [
[[package]]
name = "arrow-cast"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a7285272c9897321dfdba59de29f5b05aeafd3cdedf104a941256d155f6d304"
+checksum = "b88897802515d7b193e38b27ddd9d9e43923d410a9e46307582d756959ee9595"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -143,15 +142,16 @@ dependencies = [
"arrow-schema",
"arrow-select",
"chrono",
+ "comfy-table",
"lexical-core",
"num",
]
[[package]]
name = "arrow-csv"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "981ee4e7f6a120da04e00d0b39182e1eeacccb59c8da74511de753c56b7fddf7"
+checksum = "1c8220d9741fc37961262710ceebd8451a5b393de57c464f0267ffdda1775c0a"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -168,9 +168,9 @@ dependencies = [
[[package]]
name = "arrow-data"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27cc673ee6989ea6e4b4e8c7d461f7e06026a096c8f0b1a7288885ff71ae1e56"
+checksum = "533f937efa1aaad9dc86f6a0e382c2fa736a4943e2090c946138079bdf060cef"
dependencies = [
"arrow-buffer",
"arrow-schema",
@@ -180,9 +180,9 @@ dependencies = [
[[package]]
name = "arrow-ipc"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e37b8b69d9e59116b6b538e8514e0ec63a30f08b617ce800d31cb44e3ef64c1a"
+checksum = "18b75296ff01833f602552dff26a423fc213db8e5049b540ca4a00b1c957e41c"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -194,9 +194,9 @@ dependencies = [
[[package]]
name = "arrow-json"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "80c3fa0bed7cfebf6d18e46b733f9cb8a1cb43ce8e6539055ca3e1e48a426266"
+checksum = "e501d3de4d612c90677594896ca6c0fa075665a7ff980dc4189bb531c17e19f6"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -213,23 +213,24 @@ dependencies = [
[[package]]
name = "arrow-ord"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d247dce7bed6a8d6a3c6debfa707a3a2f694383f0c692a39d736a593eae5ef94"
+checksum = "33d2671eb3793f9410230ac3efb0e6d36307be8a2dac5fad58ac9abde8e9f01e"
dependencies = [
"arrow-array",
"arrow-buffer",
"arrow-data",
"arrow-schema",
"arrow-select",
+ "half",
"num",
]
[[package]]
name = "arrow-row"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d609c0181f963cea5c70fddf9a388595b5be441f3aa1d1cdbf728ca834bbd3a"
+checksum = "fc11fa039338cebbf4e29cf709c8ac1d6a65c7540063d4a25f991ab255ca85c8"
dependencies = [
"ahash",
"arrow-array",
@@ -242,15 +243,15 @@ dependencies = [
[[package]]
name = "arrow-schema"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64951898473bfb8e22293e83a44f02874d2257514d49cd95f9aa4afcff183fbc"
+checksum = "d04f17f7b86ded0b5baf98fe6123391c4343e031acc3ccc5fa604cc180bff220"
[[package]]
name = "arrow-select"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a513d89c2e1ac22b28380900036cf1f3992c6443efc5e079de631dcf83c6888"
+checksum = "163e35de698098ff5f5f672ada9dc1f82533f10407c7a11e2cd09f3bcf31d18a"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -261,9 +262,9 @@ dependencies = [
[[package]]
name = "arrow-string"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5288979b2705dae1114c864d73150629add9153b9b8f1d7ee3963db94c372ba5"
+checksum = "bfdfbed1b10209f0dc68e6aa4c43dc76079af65880965c7c3b73f641f23d4aba"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -1810,9 +1811,9 @@ dependencies = [
[[package]]
name = "parquet"
-version = "34.0.0"
+version = "36.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ac135ecf63ebb5f53dda0921b0b76d6048b3ef631a5f4760b9e8f863ff00cfa"
+checksum = "321a15f8332645759f29875b07f8233d16ed8ec1b3582223de81625a9f8506b7"
dependencies = [
"ahash",
"arrow-array",
diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml
index 29d31e2f25..3fae0ed366 100644
--- a/datafusion-cli/Cargo.toml
+++ b/datafusion-cli/Cargo.toml
@@ -29,7 +29,7 @@ rust-version = "1.62"
readme = "README.md"
[dependencies]
-arrow = "34.0.0"
+arrow = "36.0.0"
async-trait = "0.1.41"
clap = { version = "3", features = ["derive", "cargo"] }
datafusion = { path = "../datafusion/core", version = "21.0.0" }
diff --git a/datafusion-cli/src/object_storage.rs b/datafusion-cli/src/object_storage.rs
index 46a42c927b..229a1571f0 100644
--- a/datafusion-cli/src/object_storage.rs
+++ b/datafusion-cli/src/object_storage.rs
@@ -175,9 +175,7 @@ mod tests {
fn s3_region_validation() {
let s3 = "s3://bucket_name/path";
let registry = DatafusionCliObjectStoreRegistry::new();
- let err = registry
- .get_store(&Url::from_str(s3).unwrap())
- .unwrap_err();
+ let err = registry.get_store(&Url::from_str(s3).unwrap()).unwrap_err();
assert!(err.to_string().contains("Generic S3 error: Missing region"));
env::set_var("AWS_REGION", "us-east-1");
diff --git a/datafusion/common/src/scalar.rs b/datafusion/common/src/scalar.rs
index 49dff0c06c..d1c9107a7a 100644
--- a/datafusion/common/src/scalar.rs
+++ b/datafusion/common/src/scalar.rs
@@ -3437,10 +3437,6 @@ mod tests {
ScalarValue::Decimal128(None, 10, 2),
ScalarValue::try_from_array(&array, 3).unwrap()
);
- assert_eq!(
- ScalarValue::Decimal128(None, 10, 2),
- ScalarValue::try_from_array(&array, 4).unwrap()
- );
Ok(())
}
diff --git a/datafusion/core/tests/dataframe_functions.rs b/datafusion/core/tests/dataframe_functions.rs
index 8d280692e8..2f4e4d9d8c 100644
--- a/datafusion/core/tests/dataframe_functions.rs
+++ b/datafusion/core/tests/dataframe_functions.rs
@@ -398,10 +398,10 @@ async fn test_fn_regexp_match() -> Result<()> {
"+-----------------------------------+",
"| regexpmatch(test.a,Utf8(\"[a-z]\")) |",
"+-----------------------------------+",
- "| [] |",
- "| [] |",
- "| [] |",
- "| [] |",
+ "| [a] |",
+ "| [a] |",
+ "| [d] |",
+ "| [b] |",
"+-----------------------------------+",
];
diff --git a/datafusion/core/tests/sql/mod.rs b/datafusion/core/tests/sql/mod.rs
index 64c2d07d3f..3ac14f1c82 100644
--- a/datafusion/core/tests/sql/mod.rs
+++ b/datafusion/core/tests/sql/mod.rs
@@ -1301,15 +1301,11 @@ where
A: ArrowTimestampType<Native = i64>,
{
let schema = Arc::new(Schema::new(vec![
- Field::new(
- "ts",
- DataType::Timestamp(A::get_time_unit(), tz.clone()),
- false,
- ),
+ Field::new("ts", DataType::Timestamp(A::UNIT, tz.clone()), false),
Field::new("value", DataType::Int32, true),
]));
- let divisor = match A::get_time_unit() {
+ let divisor = match A::UNIT {
TimeUnit::Nanosecond => 1,
TimeUnit::Microsecond => 1000,
TimeUnit::Millisecond => 1_000_000,
diff --git a/datafusion/core/tests/sql/set_variable.rs b/datafusion/core/tests/sql/set_variable.rs
index 8e3511e768..f0092b3e50 100644
--- a/datafusion/core/tests/sql/set_variable.rs
+++ b/datafusion/core/tests/sql/set_variable.rs
@@ -414,7 +414,7 @@ async fn set_time_zone_bad_time_zone_format() {
.await
.unwrap();
let err = pretty_format_batches(&result).err().unwrap().to_string();
- assert_eq!(err, "Parser error: Invalid timezone \"+08:00:00\": Expected format [+-]XX:XX, [+-]XX, or [+-]XXXX");
+ assert_eq!(err, "Parser error: Invalid timezone \"+08:00:00\": '+08:00:00' is not a valid timezone");
plan_and_collect(&ctx, "SET TIME ZONE = '08:00'")
.await
diff --git a/datafusion/core/tests/sqllogictests/test_files/aggregate.slt b/datafusion/core/tests/sqllogictests/test_files/aggregate.slt
index 37a3f016cf..b049e4b16c 100644
--- a/datafusion/core/tests/sqllogictests/test_files/aggregate.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/aggregate.slt
@@ -1387,7 +1387,7 @@ as values
('2018-11-13T17:11:10.011375885995', 'Row 0'),
('2011-12-13T11:13:10.12345', 'Row 1'),
(null, 'Row 2'),
- ('2021-1-1T05:11:10.432', 'Row 3');
+ ('2021-01-01T05:11:10.432', 'Row 3');
statement ok
diff --git a/datafusion/core/tests/sqllogictests/test_files/arrow_typeof.slt b/datafusion/core/tests/sqllogictests/test_files/arrow_typeof.slt
index fee24740a6..94b954bfde 100644
--- a/datafusion/core/tests/sqllogictests/test_files/arrow_typeof.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/arrow_typeof.slt
@@ -279,7 +279,7 @@ query error Cannot automatically convert Interval\(DayTime\) to Interval\(MonthD
---
select arrow_cast(interval '30 minutes', 'Interval(MonthDayNano)');
-query error DataFusion error: Error during planning: Cannot automatically convert Utf8 to Interval\(MonthDayNano\)
+query error DataFusion error: This feature is not implemented: Can't create a scalar from array of type "Interval\(MonthDayNano\)"
select arrow_cast('30 minutes', 'Interval(MonthDayNano)');
diff --git a/datafusion/core/tests/sqllogictests/test_files/dates.slt b/datafusion/core/tests/sqllogictests/test_files/dates.slt
index fa8644c7db..ccd07e14b6 100644
--- a/datafusion/core/tests/sqllogictests/test_files/dates.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/dates.slt
@@ -87,4 +87,4 @@ h
## Plan error when compare Utf8 and timestamp in where clause
statement error DataFusion error: Error during planning: The type of Timestamp\(Nanosecond, Some\("\+00:00"\)\) Plus Utf8 of binary physical should be same
select i_item_desc from test
-where d3_date > now() + '5 days';
\ No newline at end of file
+where d3_date > now() + '5 days';
diff --git a/datafusion/core/tests/sqllogictests/test_files/ddl.slt b/datafusion/core/tests/sqllogictests/test_files/ddl.slt
index c012ae021f..4c942c3b78 100644
--- a/datafusion/core/tests/sqllogictests/test_files/ddl.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/ddl.slt
@@ -564,4 +564,4 @@ insert into foo values (null);
query I
select * from foo;
----
-NULL
\ No newline at end of file
+NULL
diff --git a/datafusion/core/tests/sqllogictests/test_files/timestamps.slt b/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
index 40acda2d8b..5fbd290ea6 100644
--- a/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
@@ -259,4 +259,4 @@ SELECT INTERVAL '8' YEAR + '2000-01-01T00:00:00'::timestamp;
query P
SELECT INTERVAL '8' MONTH + '2000-01-01T00:00:00'::timestamp;
----
-2000-09-01T00:00:00
\ No newline at end of file
+2000-09-01T00:00:00
diff --git a/datafusion/core/tests/sqllogictests/test_files/window.slt b/datafusion/core/tests/sqllogictests/test_files/window.slt
index 85a5bc18d4..8781308219 100644
--- a/datafusion/core/tests/sqllogictests/test_files/window.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/window.slt
@@ -2073,4 +2073,3 @@ SELECT SUM(c12) OVER(ORDER BY c1, c2 GROUPS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
2.994840293343 NULL
9.674390599321 NULL
7.728066219895 NULL
-
diff --git a/datafusion/optimizer/src/simplify_expressions/simplify_exprs.rs b/datafusion/optimizer/src/simplify_expressions/simplify_exprs.rs
index 1e9f902f90..c5196e07ee 100644
--- a/datafusion/optimizer/src/simplify_expressions/simplify_exprs.rs
+++ b/datafusion/optimizer/src/simplify_expressions/simplify_exprs.rs
@@ -431,7 +431,8 @@ mod tests {
.project(proj)?
.build()?;
- let expected = "Error parsing 'I'M NOT A TIMESTAMP' as timestamp";
+ let expected =
+ "Error parsing timestamp from 'I'M NOT A TIMESTAMP': error parsing date";
let actual = get_optimized_plan_err(&plan, &Utc::now());
assert_contains!(actual, expected);
Ok(())
diff --git a/datafusion/physical-expr/src/expressions/in_list.rs b/datafusion/physical-expr/src/expressions/in_list.rs
index e37d5cd749..c4d5bb9b5f 100644
--- a/datafusion/physical-expr/src/expressions/in_list.rs
+++ b/datafusion/physical-expr/src/expressions/in_list.rs
@@ -144,11 +144,9 @@ where
T: ArrayAccessor,
T::Item: PartialEq + HashValue,
{
- let data = array.data();
-
let state = RandomState::new();
let mut map: HashMap<usize, (), ()> =
- HashMap::with_capacity_and_hasher(data.len(), ());
+ HashMap::with_capacity_and_hasher(array.len(), ());
let insert_value = |idx| {
let value = array.value(idx);
@@ -161,10 +159,12 @@ where
}
};
- match data.null_buffer() {
- Some(buffer) => BitIndexIterator::new(buffer.as_ref(), data.offset(), data.len())
- .for_each(insert_value),
- None => (0..data.len()).for_each(insert_value),
+ match array.nulls() {
+ Some(nulls) => {
+ BitIndexIterator::new(nulls.validity(), nulls.offset(), nulls.len())
+ .for_each(insert_value)
+ }
+ None => (0..array.len()).for_each(insert_value),
}
ArrayHashSet { state, map }
diff --git a/datafusion/physical-expr/src/regex_expressions.rs b/datafusion/physical-expr/src/regex_expressions.rs
index ebc53e3225..3965897093 100644
--- a/datafusion/physical-expr/src/regex_expressions.rs
+++ b/datafusion/physical-expr/src/regex_expressions.rs
@@ -22,7 +22,7 @@
//! Regex expressions
use arrow::array::{
- new_null_array, Array, ArrayData, ArrayRef, BufferBuilder, GenericStringArray,
+ new_null_array, Array, ArrayDataBuilder, ArrayRef, BufferBuilder, GenericStringArray,
OffsetSizeTrait,
};
use arrow::compute;
@@ -262,17 +262,11 @@ fn _regexp_replace_static_pattern_replace<T: OffsetSizeTrait>(
new_offsets.append(T::from_usize(vals.len()).unwrap());
});
- let data = ArrayData::try_new(
- GenericStringArray::<T>::DATA_TYPE,
- string_array.len(),
- string_array
- .data_ref()
- .null_buffer()
- .map(|b| b.bit_slice(string_array.offset(), string_array.len())),
- 0,
- vec![new_offsets.finish(), vals.finish()],
- vec![],
- )?;
+ let data = ArrayDataBuilder::new(GenericStringArray::<T>::DATA_TYPE)
+ .len(string_array.len())
+ .nulls(string_array.nulls().cloned())
+ .buffers(vec![new_offsets.finish(), vals.finish()])
+ .build()?;
let result_array = GenericStringArray::<T>::from(data);
Ok(Arc::new(result_array) as ArrayRef)
}
diff --git a/datafusion/physical-expr/src/window/cume_dist.rs b/datafusion/physical-expr/src/window/cume_dist.rs
index 3abb91e06f..4699757800 100644
--- a/datafusion/physical-expr/src/window/cume_dist.rs
+++ b/datafusion/physical-expr/src/window/cume_dist.rs
@@ -112,7 +112,7 @@ mod tests {
.evaluate_with_rank(num_rows, &ranks)?;
let result = as_float64_array(&result)?;
let result = result.values();
- assert_eq!(expected, result);
+ assert_eq!(expected, *result);
Ok(())
}
diff --git a/datafusion/physical-expr/src/window/rank.rs b/datafusion/physical-expr/src/window/rank.rs
index 5f016739cf..89ca40dd56 100644
--- a/datafusion/physical-expr/src/window/rank.rs
+++ b/datafusion/physical-expr/src/window/rank.rs
@@ -245,7 +245,7 @@ mod tests {
.evaluate_with_rank(num_rows, &ranks)?;
let result = as_float64_array(&result)?;
let result = result.values();
- assert_eq!(expected, result);
+ assert_eq!(expected, *result);
Ok(())
}
@@ -257,7 +257,7 @@ mod tests {
let result = expr.create_evaluator()?.evaluate_with_rank(8, &ranks)?;
let result = as_uint64_array(&result)?;
let result = result.values();
- assert_eq!(expected, result);
+ assert_eq!(expected, *result);
Ok(())
}
diff --git a/datafusion/physical-expr/src/window/row_number.rs b/datafusion/physical-expr/src/window/row_number.rs
index 8961b277e7..9883d67f7c 100644
--- a/datafusion/physical-expr/src/window/row_number.rs
+++ b/datafusion/physical-expr/src/window/row_number.rs
@@ -121,7 +121,7 @@ mod tests {
.evaluate(&values, batch.num_rows())?;
let result = as_uint64_array(&result)?;
let result = result.values();
- assert_eq!(vec![1, 2, 3, 4, 5, 6, 7, 8], result);
+ assert_eq!(vec![1, 2, 3, 4, 5, 6, 7, 8], *result);
Ok(())
}
@@ -139,7 +139,7 @@ mod tests {
.evaluate(&values, batch.num_rows())?;
let result = as_uint64_array(&result)?;
let result = result.values();
- assert_eq!(vec![1, 2, 3, 4, 5, 6, 7, 8], result);
+ assert_eq!(vec![1, 2, 3, 4, 5, 6, 7, 8], *result);
Ok(())
}
}