| 144 | } |
| 145 | |
| 146 | void EvalCtx::addError( |
| 147 | vector_size_t index, |
| 148 | const std::exception_ptr& exceptionPtr, |
| 149 | ErrorVectorPtr& errorsPtr) const { |
| 150 | ensureErrorsVectorSize(errorsPtr, index + 1); |
| 151 | if (errorsPtr->isNullAt(index)) { |
| 152 | errorsPtr->setNull(index, false); |
| 153 | errorsPtr->set(index, std::make_shared<std::exception_ptr>(exceptionPtr)); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void EvalCtx::addErrors( |
| 158 | const SelectivityVector& rows, |