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

Function test_spark_space_scalar

datafusion/spark/src/function/string/space.rs:214–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213 #[test]
214 fn test_spark_space_scalar() -> Result<()> {
215 let scalar = ColumnarValue::Scalar(ScalarValue::Int32(Some(-5)));
216 let ColumnarValue::Scalar(result) = spark_space(&[scalar])? else {
217 unreachable!()
218 };
219 match result {
220 ScalarValue::Utf8(Some(result)) => {
221 assert_eq!(result, "");
222 }
223 _ => unreachable!(),
224 }
225 Ok(())
226 }
227}

Callers

nothing calls this directly

Calls 1

spark_spaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…