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

Function case_test_batch

datafusion/physical-expr/src/expressions/case.rs:2081–2086  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2079 }
2080
2081 fn case_test_batch() -> Result<RecordBatch> {
2082 let schema = Schema::new(vec![Field::new("a", DataType::Utf8, true)]);
2083 let a = StringArray::from(vec![Some("foo"), Some("baz"), None, Some("bar")]);
2084 let batch = RecordBatch::try_new(Arc::new(schema), vec![Arc::new(a)])?;
2085 Ok(batch)
2086 }
2087
2088 // Construct an array that has several NULL values whose
2089 // underlying buffer actually matches the where expr predicate

Callers 8

case_with_exprFunction · 0.85
case_with_expr_elseFunction · 0.85
case_without_exprFunction · 0.85
case_with_expr_when_nullFunction · 0.85
case_without_expr_elseFunction · 0.85
case_with_type_castFunction · 0.85
case_test_incompatibleFunction · 0.85

Calls 1

newFunction · 0.85

Tested by 8

case_with_exprFunction · 0.68
case_with_expr_elseFunction · 0.68
case_without_exprFunction · 0.68
case_with_expr_when_nullFunction · 0.68
case_without_expr_elseFunction · 0.68
case_with_type_castFunction · 0.68
case_test_incompatibleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…