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

Function propagateErrorsOrSetNulls

bolt/expression/CastExpr.cpp:50–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49namespace {
50void propagateErrorsOrSetNulls(
51 bool setNullInResultAtError,
52 EvalCtx& context,
53 const SelectivityVector& nestedRows,
54 const BufferPtr& elementToTopLevelRows,
55 VectorPtr& result,
56 ErrorVectorPtr& oldErrors) {
57 if (context.errors()) {
58 if (setNullInResultAtError) {
59 // Errors in context.errors() should be translated to nulls in the top
60 // level rows.
61 context.convertElementErrorsToTopLevelNulls(
62 nestedRows, elementToTopLevelRows, result);
63 } else {
64 context.addElementErrorsToTopLevel(
65 nestedRows, elementToTopLevelRows, oldErrors);
66 }
67 }
68}
69} // namespace
70
71#define BOLT_DYNAMIC_DECIMAL_TYPE_DISPATCH(TEMPLATE_FUNC, decimalTypePtr, ...) \

Callers 2

applyMapMethod · 0.85
applyArrayMethod · 0.85

Calls 3

errorsMethod · 0.45

Tested by

no test coverage detected