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

Function append_part

datafusion/functions-nested/src/string.rs:321–331  ·  view source on GitHub ↗
(
    builder: &mut impl StringArrayBuilderType,
    value: &str,
    null_value: Option<&str>,
)

Source from the content-addressed store, hash-verified

319/// Appends `value` to the string builder, or NULL if it matches `null_value`.
320#[inline(always)]
321fn append_part(
322 builder: &mut impl StringArrayBuilderType,
323 value: &str,
324 null_value: Option<&str>,
325) {
326 if null_value == Some(value) {
327 builder.append_null();
328 } else {
329 builder.append_value(value);
330 }
331}
332
333/// Optimized `string_to_array` implementation for the common case where
334/// delimiter and null_value are scalar values.

Callers 2

Calls 2

append_nullMethod · 0.45
append_valueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…