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

Function test_fn_nullif

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

Source from the content-addressed store, hash-verified

172
173#[tokio::test]
174async fn test_fn_nullif() -> Result<()> {
175 let expr = nullif(col("a"), lit("abcDEF"));
176
177 let batches = get_batches(expr).await?;
178
179 assert_snapshot!(
180 batches_to_string(&batches),
181 @r#"
182 +-------------------------------+
183 | nullif(test.a,Utf8("abcDEF")) |
184 +-------------------------------+
185 | |
186 | abc123 |
187 | CBAdef |
188 | 123AbcDef |
189 +-------------------------------+
190 "#);
191
192 Ok(())
193}
194
195#[tokio::test]
196async fn test_fn_arrow_cast() -> Result<()> {

Callers

nothing calls this directly

Calls 3

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…