Skip to content

Commit

Permalink
Change message in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Raunak Bhagat committed Nov 21, 2024
1 parent 95bfbdb commit d63ce68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daft-core/src/array/ops/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl ListArray {
}

pub fn list_contains(&self, values: Series) -> DaftResult<BooleanArray> {
assert_eq!(self.len(), values.len(), "Expected two lists with the same length, instead got self.len() = {} and values.len() = {}", self.len(), values.len());
assert_eq!(self.len(), values.len(), "Expected two series with the same length, instead got self.len() = {} and values.len() = {}", self.len(), values.len());
assert_eq!(self.child_data_type(), values.data_type(), "Expected values to be a column of type <T> and self to be column of type List<T>, but instead got values: {} and self: {}", values.data_type(), self.child_data_type());
let founds = with_match_iterable_daft_types!(values.data_type(), |$T| {

Check warning on line 633 in src/daft-core/src/array/ops/list.rs

View check run for this annotation

Codecov / codecov/patch

src/daft-core/src/array/ops/list.rs#L630-L633

Added lines #L630 - L633 were not covered by tests
let mut founds = vec![];
Expand Down

0 comments on commit d63ce68

Please sign in to comment.