fn read_data_types()

in azure-kusto-data/src/arrow.rs [203:218]


    fn read_data_types() {
        let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
        path.push("tests/inputs/dataframe.json");

        let data = std::fs::read_to_string(path).expect("Failed to read file");
        let tables: Vec<V2QueryResult> =
            serde_json::from_str(&data).expect("Failed to deserialize result table");
        let response = KustoResponseDataSetV2 { results: tables };
        let record_batches = response
            .record_batches()
            .collect::<std::result::Result<Vec<_>, _>>()
            .expect("Failed to convert to record batches");

        assert!(record_batches[0].num_columns() > 0);
        assert!(record_batches[0].num_rows() > 0);
    }