MCPcopy Create free account
hub / github.com/apache/paimon-rust / get_string

Method get_string

crates/paimon/src/spec/binary_row.rs:232–238  ·  view source on GitHub ↗
(&self, pos: usize)

Source from the content-addressed store, hash-verified

230 }
231
232 pub fn get_string(&self, pos: usize) -> crate::Result<&str> {
233 let bytes = self.get_binary(pos)?;
234 std::str::from_utf8(bytes).map_err(|e| crate::Error::UnexpectedError {
235 message: format!("BinaryRow: invalid UTF-8 in string field at pos {pos}: {e}"),
236 source: Some(Box::new(e)),
237 })
238 }
239
240 pub(crate) fn get_decimal_unscaled(&self, pos: usize, precision: u32) -> crate::Result<i128> {
241 if precision <= 18 {

Calls 1

get_binaryMethod · 0.80

Tested by

no test coverage detected