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

Function build_table

datafusion/core/tests/set_comparison.rs:26–31  ·  view source on GitHub ↗
(values: &[i32])

Source from the content-addressed store, hash-verified

24use datafusion_common::{Result, assert_batches_eq, assert_contains};
25
26fn build_table(values: &[i32]) -> Result<RecordBatch> {
27 let schema = Arc::new(Schema::new(vec![Field::new("v", DataType::Int32, true)]));
28 let array =
29 Arc::new(Int32Array::from(values.to_vec())) as Arc<dyn arrow::array::Array>;
30 RecordBatch::try_new(schema, vec![array]).map_err(Into::into)
31}
32
33#[tokio::test]
34async fn set_comparison_any() -> Result<()> {

Calls 2

newFunction · 0.85
to_vecMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…