pub fn pyarrow_optional(column: &str) -> Array {
    let i64_values = &[
        Some(0),
        Some(1),
        None,
        Some(3),
        None,
        Some(5),
        Some(6),
        Some(7),
        None,
        Some(9),
    ];
    let f64_values = &[
        Some(0.0),
        Some(1.0),
        None,
        Some(3.0),
        None,
        Some(5.0),
        Some(6.0),
        Some(7.0),
        None,
        Some(9.0),
    ];
    let string_values = &[
        Some(b"Hello".to_vec()),
        None,
        Some(b"aa".to_vec()),
        Some(b"".to_vec()),
        None,
        Some(b"abc".to_vec()),
        None,
        None,
        Some(b"def".to_vec()),
        Some(b"aaa".to_vec()),
    ];
    let bool_values = &[
        Some(true),
        None,
        Some(false),
        Some(false),
        None,
        Some(true),
        None,
        None,
        Some(true),
        Some(true),
    ];
    let binary_values = &[
        Some(b"aa".to_vec()),
        None,
        Some(b"cc".to_vec()),
        Some(b"dd".to_vec()),
        None,
        Some(b"ff".to_vec()),
        None,
        None,
        Some(b"ii".to_vec()),
        Some(b"jj".to_vec()),
    ];

    match column {
        "int64" => Array::Int64(i64_values.to_vec()),
        "float64" => Array::Float64(f64_values.to_vec()),
        "string" => Array::Binary(string_values.to_vec()),
        "bool" => Array::Boolean(bool_values.to_vec()),
        "date" => Array::Int64(i64_values.to_vec()),
        "uint32" => Array::Int32(i64_values.iter().map(|i| i.map(|x| x as i32)).collect()),
        "fixed_binary" => Array::FixedLenBinary(binary_values.to_vec()),
        _ => unreachable!(),
    }
}
// these values match the values in `integration`
these values match the values in `integration`
these values match the values in ` integration `
pub fn pyarrow_optional(column: &str) -> Array {
    let i64_values = &[
        Some(0),
        Some(1),
        None,
        Some(3),
        None,
        Some(5),
        Some(6),
        Some(7),
        None,
        Some(9),
    ];
    let f64_values = &[
        Some(0.0),
        Some(1.0),
        None,
        Some(3.0),
        None,
        Some(5.0),
        Some(6.0),
        Some(7.0),
        None,
        Some(9.0),
    ];
    let string_values = &[
        Some(b"Hello".to_vec()),
        None,
        Some(b"aa".to_vec()),
        Some(b"".to_vec()),
        None,
        Some(b"abc".to_vec()),
        None,
        None,
        Some(b"def".to_vec()),
        Some(b"aaa".to_vec()),
    ];
    let bool_values = &[
        Some(true),
        None,
        Some(false),
        Some(false),
        None,
        Some(true),
        None,
        None,
        Some(true),
        Some(true),
    ];
    let binary_values = &[
        Some(b"aa".to_vec()),
        None,
        Some(b"cc".to_vec()),
        Some(b"dd".to_vec()),
        None,
        Some(b"ff".to_vec()),
        None,
        None,
        Some(b"ii".to_vec()),
        Some(b"jj".to_vec()),
    ];
    match column {
        "int64" => Array::Int64(i64_values.to_vec()),
        "float64" => Array::Float64(f64_values.to_vec()),
        "string" => Array::Binary(string_values.to_vec()),
        "bool" => Array::Boolean(bool_values.to_vec()),
        "date" => Array::Int64(i64_values.to_vec()),
        "uint32" => Array::Int32(i64_values.iter().map(|i| i.map(|x| x as i32)).collect()),
        "fixed_binary" => Array::FixedLenBinary(binary_values.to_vec()),
        _ => unreachable!(),
    }
}
pub fn pyarrow_optional ( column : & str ) -> Array { let i64_values = & [ Some ( 0 ) , Some ( 1 ) , None , Some ( 3 ) , None , Some ( 5 ) , Some ( 6 ) , Some ( 7 ) , None , Some ( 9 ) , ] ; let f64_values = & [ Some ( 0.0 ) , Some ( 1.0 ) , None , Some ( 3.0 ) , None , Some ( 5.0 ) , Some ( 6.0 ) , Some ( 7.0 ) , None , Some ( 9.0 ) , ] ; let string_values = & [ Some ( b" " . to_vec ( ) ) , None , Some ( b" " . to_vec ( ) ) , Some ( b" " . to_vec ( ) ) , None , Some ( b" " . to_vec ( ) ) , None , None , Some ( b" " . to_vec ( ) ) , Some ( b" " . to_vec ( ) ) , ] ; let bool_values = & [ Some ( true ) , None , Some ( false ) , Some ( false ) , None , Some ( true ) , None , None , Some ( true ) , Some ( true ) , ] ; let binary_values = & [ Some ( b" " . to_vec ( ) ) , None , Some ( b" " . to_vec ( ) ) , Some ( b" " . to_vec ( ) ) , None , Some ( b" " . to_vec ( ) ) , None , None , Some ( b" " . to_vec ( ) ) , Some ( b" " . to_vec ( ) ) , ] ; match column { " " => Array :: Int64 ( i64_values . to_vec ( ) ) , " " => Array :: Float64 ( f64_values . to_vec ( ) ) , " " => Array :: Binary ( string_values . to_vec ( ) ) , " " => Array :: Boolean ( bool_values . to_vec ( ) ) , " " => Array :: Int64 ( i64_values . to_vec ( ) ) , " " => Array :: Int32 ( i64_values . iter ( ) . map ( | i | i . map ( | x | x as i32 ) ) . collect ( ) ) , " " => Array :: FixedLenBinary ( binary_values . to_vec ( ) ) , _ => unreachable ! ( ) , } }
these values match the values in `integration`
these values match the values in ` integration `
column
&str