Convert to a string if it has utf8 encoding, otherwise print bytes directly
(val: Option<&FixedLenByteArray>)
| 311 | |
| 312 | /// Convert to a string if it has utf8 encoding, otherwise print bytes directly |
| 313 | fn fixed_len_byte_array_to_string(val: Option<&FixedLenByteArray>) -> Option<String> { |
| 314 | val.map(|v| { |
| 315 | v.as_utf8() |
| 316 | .map(|s| s.to_string()) |
| 317 | .unwrap_or_else(|_e| v.to_string()) |
| 318 | }) |
| 319 | } |
| 320 | |
| 321 | #[derive(Debug)] |
| 322 | pub struct ParquetMetadataFunc {} |
no test coverage detected
searching dependent graphs…