Skip to content

Commit

Permalink
Modify doc for nanvl. (#7311)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Aug 16, 2023
1 parent 6b55adf commit d2f9025
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datafusion/physical-expr/src/math_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,9 @@ mod tests {
Arc::new(Float64Array::from(vec![5.0, 6.0, f64::NAN, f64::NAN])), // x
];

let result = nanvl(&args).expect("failed to initialize function atan2");
let result = nanvl(&args).expect("failed to initialize function nanvl");
let floats =
as_float64_array(&result).expect("failed to initialize function atan2");
as_float64_array(&result).expect("failed to initialize function nanvl");

assert_eq!(floats.len(), 4);
assert_eq!(floats.value(0), 1.0);
Expand All @@ -1075,9 +1075,9 @@ mod tests {
Arc::new(Float32Array::from(vec![5.0, 6.0, f32::NAN, f32::NAN])), // x
];

let result = nanvl(&args).expect("failed to initialize function atan2");
let result = nanvl(&args).expect("failed to initialize function nanvl");
let floats =
as_float32_array(&result).expect("failed to initialize function atan2");
as_float32_array(&result).expect("failed to initialize function nanvl");

assert_eq!(floats.len(), 4);
assert_eq!(floats.value(0), 1.0);
Expand Down
1 change: 1 addition & 0 deletions docs/source/user-guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ expressions such as `col("a") + col("b")` to be used.
| log(base, x) | logarithm of x for a particular base |
| log10(x) | base 10 logarithm |
| log2(x) | base 2 logarithm |
| nanvl(x, y) | returns x if x is not NaN otherwise returns y |
| pi() | approximate value of π |
| power(base, exponent) | base raised to the power of exponent |
| radians(x) | converts degrees to radians |
Expand Down

0 comments on commit d2f9025

Please sign in to comment.