MCPcopy Create free account
hub / github.com/apache/datafusion / make_array_formatter

Function make_array_formatter

benchmarks/src/sql_benchmark.rs:1541–1553  ·  view source on GitHub ↗
(
    array: &'a dyn Array,
    options: &FormatOptions<'a>,
    field: Option<&'a Field>,
)

Source from the content-addressed store, hash-verified

1539}
1540
1541fn make_array_formatter<'a>(
1542 array: &'a dyn Array,
1543 options: &FormatOptions<'a>,
1544 field: Option<&'a Field>,
1545) -> Result<ArrayFormatter<'a>, ArrowError> {
1546 match options.formatter_factory() {
1547 None => ArrayFormatter::try_new(array, options),
1548 Some(formatters) => formatters
1549 .create_array_formatter(array, options, field)
1550 .transpose()
1551 .unwrap_or_else(|| ArrayFormatter::try_new(array, options)),
1552 }
1553}
1554
1555#[cfg(test)]
1556mod tests {

Callers 1

format_record_batchesFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…