| 684 | } |
| 685 | |
| 686 | void FactorizedTableIterator::readUnflatColToFlatTuple(ft_col_idx_t colIdx, uint8_t* valueBuffer, |
| 687 | FlatTuple& tuple) { |
| 688 | auto overflowValue = |
| 689 | (overflow_value_t*)(valueBuffer + factorizedTable.getTableSchema()->getColOffset(colIdx)); |
| 690 | auto groupID = factorizedTable.getTableSchema()->getColumn(colIdx)->getGroupID(); |
| 691 | auto tupleSizeInOverflowBuffer = |
| 692 | LogicalTypeUtils::getRowLayoutSize(tuple[colIdx].getDataType()); |
| 693 | valueBuffer = overflowValue->value + |
| 694 | tupleSizeInOverflowBuffer * flatTuplePositionsInDataChunk[groupID].first; |
| 695 | auto isNull = factorizedTable.isOverflowColNull( |
| 696 | overflowValue->value + tupleSizeInOverflowBuffer * overflowValue->numElements, |
| 697 | flatTuplePositionsInDataChunk[groupID].first, colIdx); |
| 698 | tuple[colIdx].setNull(isNull); |
| 699 | if (!isNull) { |
| 700 | tuple[colIdx].copyFromRowLayout(valueBuffer); |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | void FactorizedTableIterator::readFlatColToFlatTuple(ft_col_idx_t colIdx, uint8_t* valueBuffer, |
| 705 | FlatTuple& tuple) { |
nothing calls this directly
no test coverage detected