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

Function test_round_f32_cast_fail

datafusion/functions/src/math/round.rs:829–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

827
828 #[test]
829 fn test_round_f32_cast_fail() {
830 let args: Vec<ArrayRef> = vec![
831 Arc::new(Float64Array::from(vec![125.2345])), // input
832 Arc::new(Int64Array::from(vec![2147483648])), // decimal_places
833 ];
834
835 let result = round_arrays(Arc::clone(&args[0]), Some(Arc::clone(&args[1])));
836
837 assert!(result.is_err());
838 assert!(matches!(
839 result,
840 Err(DataFusionError::ArrowError(_, _)) | Err(DataFusionError::Execution(_))
841 ));
842 }
843}

Callers

nothing calls this directly

Calls 1

round_arraysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…