(b: u8, description: &str)
| 27 | } |
| 28 | |
| 29 | pub(crate) fn byte_to_string(b: u8, description: &str) -> Result<String> { |
| 30 | let b = &[b]; |
| 31 | let b = std::str::from_utf8(b).map_err(|_| { |
| 32 | internal_datafusion_err!( |
| 33 | "Invalid CSV {description}: can not represent {b:0x?} as utf8" |
| 34 | ) |
| 35 | })?; |
| 36 | Ok(b.to_owned()) |
| 37 | } |
| 38 | |
| 39 | #[macro_export] |
| 40 | macro_rules! convert_required { |
no outgoing calls
no test coverage detected
searching dependent graphs…