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

Function test_fn_repeat

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

Source from the content-addressed store, hash-verified

880
881#[tokio::test]
882async fn test_fn_repeat() -> Result<()> {
883 let expr = repeat(col("a"), lit(2));
884
885 let batches = get_batches(expr).await?;
886
887 assert_snapshot!(
888 batches_to_string(&batches),
889 @r"
890 +-------------------------+
891 | repeat(test.a,Int32(2)) |
892 +-------------------------+
893 | abcDEFabcDEF |
894 | abc123abc123 |
895 | CBAdefCBAdef |
896 | 123AbcDef123AbcDef |
897 +-------------------------+
898 ");
899
900 Ok(())
901}
902
903#[tokio::test]
904#[cfg(feature = "unicode_expressions")]

Callers

nothing calls this directly

Calls 4

repeatFunction · 0.85
get_batchesFunction · 0.85
colFunction · 0.50
litFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…