You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs::read(&path).expect(&format!("Could not read from path {0}", path.display()));
54
53
codec_for_decompressing.decompress(&mut data).expect("Could not successfully decompress Avro file. Make sure that the codec you specified is correct");
55
54
files.push(AvroFile{ data, path });
56
55
}
57
56
58
-
Avro{ files }
57
+
AvroCli{ files }
59
58
}
60
59
60
+
/// Get all the names of the columns.
61
+
/// Relies on the first record
61
62
pubfnget_all_field_names(&self) -> Vec<String>{
62
63
let first_file = &self.files[0];
63
-
letmut reader = Reader::new(&first_file.data[..]).expect(&format!("Could not read Avro file {}", first_file.path.display()));
64
-
ifletOk(Value::Record(fields)) = reader.next().expect("Avro must have at least one record row to infer schema"){
0 commit comments