| 48 | |
| 49 | namespace { |
| 50 | void 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, ...) \ |
no test coverage detected