Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
reswqa committed Sep 17, 2023
1 parent 55f8870 commit 7bf5adb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/polars-ops/src/chunked_array/list/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ pub trait ListNameSpaceImpl: AsList {
Utf8ChunkedBuilder::new(ca.name(), ca.len(), ca.get_values_size() + ca.len());
// SAFETY: unstable series never lives longer than the iterator.
unsafe {
ca.amortized_iter().zip(separator.into_iter()).for_each(
|(opt_s, opt_sep)| match opt_sep {
ca.amortized_iter()
.zip(separator)
.for_each(|(opt_s, opt_sep)| match opt_sep {
Some(separator) => {
let opt_val = opt_s.map(|s| {
// make sure that we don't write values of previous iteration
Expand All @@ -148,8 +149,7 @@ pub trait ListNameSpaceImpl: AsList {
builder.append_option(opt_val)
},
_ => builder.append_null(),
},
)
})
}
Ok(builder.finish())
}
Expand Down
2 changes: 1 addition & 1 deletion crates/polars-sql/tests/functions_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn array_to_string() {
.lazy()
.group_by([col("b")])
.agg([col("a")])
.select(&[col("b"), col("a").list().join(", ").alias("as")])
.select(&[col("b"), col("a").list().join(lit(", ")).alias("as")])
.sort_by_exprs(vec![col("b"), col("as")], vec![false, false], false, true)
.collect()
.unwrap();
Expand Down

0 comments on commit 7bf5adb

Please sign in to comment.