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

Function test_fn_md5

datafusion/core/tests/dataframe/dataframe_functions.rs:718–737  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

716#[tokio::test]
717#[cfg(feature = "unicode_expressions")]
718async fn test_fn_md5() -> Result<()> {
719 let expr = md5(col("a"));
720
721 let batches = get_batches(expr).await?;
722
723 assert_snapshot!(
724 batches_to_string(&batches),
725 @r"
726 +----------------------------------+
727 | md5(test.a) |
728 +----------------------------------+
729 | ea2de8bd80f3a1f52c754214fc9b0ed1 |
730 | e99a18c428cb38d5f260853678922e03 |
731 | 11ed4a6e9985df40913eead67f022e27 |
732 | 8f5e60e523c9253e623ae38bb58c399a |
733 +----------------------------------+
734 ");
735
736 Ok(())
737}
738
739#[tokio::test]
740#[cfg(feature = "unicode_expressions")]

Callers

nothing calls this directly

Calls 3

md5Function · 0.85
get_batchesFunction · 0.85
colFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…