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

Function employee_batch

datafusion/core/src/execution/session_state.rs:2435–2440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2433 #[test]
2434 fn test_from_existing() -> Result<()> {
2435 fn employee_batch() -> RecordBatch {
2436 let name: ArrayRef =
2437 Arc::new(StringArray::from_iter_values(["Andy", "Andrew"]));
2438 let age: ArrayRef = Arc::new(Int32Array::from(vec![11, 22]));
2439 RecordBatch::try_from_iter(vec![("name", name), ("age", age)]).unwrap()
2440 }
2441 let batch = employee_batch();
2442 let table = MemTable::try_new(batch.schema(), vec![vec![batch]])?;
2443

Callers 1

test_from_existingFunction · 0.70

Calls 1

newFunction · 0.85

Tested by 1

test_from_existingFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…