| 1128 | } |
| 1129 | |
| 1130 | bool HdfsScanPlanNode::HasVirtualColumnInTemplateTuple() const { |
| 1131 | for (SlotDescriptor* sd : virtual_column_slots_) { |
| 1132 | DCHECK(sd->IsVirtual()); |
| 1133 | if (sd->virtual_column_type() == TVirtualColumnType::FILE_POSITION) { |
| 1134 | // We return false at the end of the function if there are no virtual |
| 1135 | // columns in the template tuple. |
| 1136 | continue; |
| 1137 | } else if (sd->virtual_column_type() == TVirtualColumnType::INPUT_FILE_NAME || |
| 1138 | sd->virtual_column_type() == TVirtualColumnType::PARTITION_SPEC_ID || |
| 1139 | sd->virtual_column_type() == TVirtualColumnType::ICEBERG_PARTITION_SERIALIZED || |
| 1140 | sd->virtual_column_type() == TVirtualColumnType::ICEBERG_DATA_SEQUENCE_NUMBER || |
| 1141 | sd->virtual_column_type() == TVirtualColumnType::ICEBERG_FIRST_ROW_ID) { |
| 1142 | return true; |
| 1143 | } else { |
| 1144 | // Adding DCHECK here so we don't forget to update this when adding new virtual |
| 1145 | // column. |
| 1146 | DCHECK(false); |
| 1147 | } |
| 1148 | } |
| 1149 | return false; |
| 1150 | } |
| 1151 | |
| 1152 | void HdfsScanNodeBase::TransferToSharedStatePool(MemPool* pool) { |
| 1153 | shared_state_->TransferToSharedStatePool(pool); |
no test coverage detected