MCPcopy Create free account
hub / github.com/bytedance/bolt / callNullable

Method callNullable

bolt/functions/sparksql/ArrayAppend.h:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 BOLT_DEFINE_FUNCTION_TYPES(TExec);
42
43 FOLLY_ALWAYS_INLINE bool callNullable(
44 out_type<Array<Generic<T1>>>& out,
45 const arg_type<Array<Generic<T1>>>* array,
46 const arg_type<Generic<T1>>* element) {
47 if (array == nullptr) {
48 return false;
49 }
50 out.reserve(array->size() + 1);
51 out.add_items(*array);
52 element ? out.push_back(*element) : out.add_null();
53 return true;
54 }
55};
56
57} // namespace bytedance::bolt::functions::sparksql

Callers

nothing calls this directly

Calls 5

add_itemsMethod · 0.80
add_nullMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected