| 13 | } |
| 14 | |
| 15 | void Filter::initLocalStateInternal(ResultSet* resultSet, ExecutionContext* context) { |
| 16 | expressionEvaluator->init(*resultSet, context->clientContext); |
| 17 | if (dataChunkToSelectPos == INVALID_DATA_CHUNK_POS) { |
| 18 | // Filter a constant expression. Ideally we should fold all such expression at compile time. |
| 19 | // But there are many edge cases, so we keep this code path for robustness. |
| 20 | state = DataChunkState::getSingleValueDataChunkState(); |
| 21 | } else { |
| 22 | state = resultSet->dataChunks[dataChunkToSelectPos]->state; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | bool Filter::getNextTuplesInternal(ExecutionContext* context) { |
| 27 | bool hasAtLeastOneSelectedValue = false; |
nothing calls this directly
no test coverage detected