mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Removed bug occurring with f64 (#3697)
* Type in command description * filter name change * Clean column name * Clippy error and updated polars version * Lint correction in file * CSV Infer schema optional * Correct float operations
This commit is contained in:
parent
c2f78aaf88
commit
989062d2f8
1 changed files with 2 additions and 2 deletions
|
@ -669,14 +669,14 @@ fn compare_series_decimal<'r, F>(
|
|||
span: &Span,
|
||||
) -> UntaggedValue
|
||||
where
|
||||
F: Fn(&'r ChunkedArray<Float64Type>, i64) -> ChunkedArray<BooleanType>,
|
||||
F: Fn(&'r ChunkedArray<Float64Type>, f64) -> ChunkedArray<BooleanType>,
|
||||
{
|
||||
let casted = series.f64();
|
||||
match casted {
|
||||
Ok(casted) => {
|
||||
let res = f(
|
||||
casted,
|
||||
val.to_i64()
|
||||
val.to_f64()
|
||||
.expect("Internal error: protocol did not use compatible decimal"),
|
||||
);
|
||||
let res = res.into_series();
|
||||
|
|
Loading…
Reference in a new issue