fn gen_recordbatch() -> RecordBatch {
        let schema = SchemaBuilder::new()
            .non_null_tag("region")
            .non_null_field("counter", Float64)
            .non_null_field("active", Boolean)
            .timestamp()
            .field("sketchy_sensor", Float64)
            .build()
            .unwrap()
            .into();

        let data: Vec<ArrayRef> = vec![
            Arc::new(
                vec!["west", "west", "east"]
                    .into_iter()
                    .collect::<DictionaryArray<Int32Type>>(),
            ),
            Arc::new(Float64Array::from(vec![1.2, 3.3, 45.3])),
            Arc::new(BooleanArray::from(vec![true, false, true])),
            Arc::new(TimestampNanosecondArray::from_vec(
                vec![11111111, 222222, 3333],
                None,
            )),
            Arc::new(Float64Array::from(vec![Some(11.0), None, Some(12.0)])),
        ];

        RecordBatch::try_new(schema, data).unwrap()
    }
// helper to make the `add_remove_tables` test simpler to read.
helper to make the `add_remove_tables` test simpler to read.
helper to make the ` add_remove_tables ` test simpler to read .
fn gen_recordbatch() -> RecordBatch {
        let schema = SchemaBuilder::new()
            .non_null_tag("region")
            .non_null_field("counter", Float64)
            .non_null_field("active", Boolean)
            .timestamp()
            .field("sketchy_sensor", Float64)
            .build()
            .unwrap()
            .into();
        let data: Vec<ArrayRef> = vec![
            Arc::new(
                vec!["west", "west", "east"]
                    .into_iter()
                    .collect::<DictionaryArray<Int32Type>>(),
            ),
            Arc::new(Float64Array::from(vec![1.2, 3.3, 45.3])),
            Arc::new(BooleanArray::from(vec![true, false, true])),
            Arc::new(TimestampNanosecondArray::from_vec(
                vec![11111111, 222222, 3333],
                None,
            )),
            Arc::new(Float64Array::from(vec![Some(11.0), None, Some(12.0)])),
        ];
        RecordBatch::try_new(schema, data).unwrap()
    }
fn gen_recordbatch ( ) -> RecordBatch { let schema = SchemaBuilder :: new ( ) . non_null_tag ( " " ) . non_null_field ( " " , Float64 ) . non_null_field ( " " , Boolean ) . timestamp ( ) . field ( " " , Float64 ) . build ( ) . unwrap ( ) . into ( ) ; let data : Vec < ArrayRef > = vec ! [ Arc new ( vec [ " " " " " " ] into_iter ( ) collect DictionaryArray Int32Type ( ) ) Arc new ( Float64Array from ( vec [ 1.2 3.3 45.3 ] ) ) Arc new ( BooleanArray from ( vec [ true false true ] ) ) Arc new ( TimestampNanosecondArray from_vec ( vec [ 11111111 222222 3333 ] None ) ) Arc new ( Float64Array from ( vec [ Some ( 11.0 ) None Some ( 12.0 ) ] ) ) ] ; RecordBatch :: try_new ( schema , data ) . unwrap ( ) }
helper to make the `add_remove_tables` test simpler to read.
helper to make the ` add_remove_tables ` test simpler to read .