MCPcopy Create free account
hub / github.com/apache/datafusion / test_log_invalid_value

Function test_log_invalid_value

datafusion/functions/src/math/log.rs:452–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450
451 #[test]
452 fn test_log_invalid_value() {
453 let arg_field = Field::new("a", DataType::Date32, false).into();
454 let args = ScalarFunctionArgs {
455 args: vec![
456 ColumnarValue::Array(Arc::new(Date32Array::from(vec![10]))), // num
457 ],
458 arg_fields: vec![arg_field],
459 number_rows: 1,
460 return_field: Field::new("f", DataType::Float64, true).into(),
461 config_options: Arc::new(ConfigOptions::default()),
462 };
463
464 let result = LogFunc::new().invoke_with_args(args);
465 result.expect_err("expected error");
466 }
467
468 #[test]
469 fn test_log_scalar_f32_unary() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
intoMethod · 0.45
invoke_with_argsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…