Convert a single hex string to binary
(s: &str)
| 141 | |
| 142 | /// Convert a single hex string to binary |
| 143 | fn unhex_scalar(s: &str) -> Option<Vec<u8>> { |
| 144 | let mut buffer = Vec::with_capacity(s.len().div_ceil(2)); |
| 145 | if unhex_common(s.as_bytes(), &mut buffer) { |
| 146 | Some(buffer) |
| 147 | } else { |
| 148 | None |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | fn spark_unhex(args: &[ColumnarValue]) -> Result<ColumnarValue, DataFusionError> { |
| 153 | let [args] = take_function_args("unhex", args)?; |
no test coverage detected
searching dependent graphs…