MCPcopy Create free account
hub / github.com/apache/impala / HasVirtualColumnInTemplateTuple

Method HasVirtualColumnInTemplateTuple

be/src/exec/hdfs-scan-node-base.cc:1130–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130bool 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
1152void HdfsScanNodeBase::TransferToSharedStatePool(MemPool* pool) {
1153 shared_state_->TransferToSharedStatePool(pool);

Callers 1

CodegenInitTupleMethod · 0.80

Calls 2

IsVirtualMethod · 0.80
virtual_column_typeMethod · 0.80

Tested by

no test coverage detected