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

Method HasIcebergDefaultValue

be/src/exec/file-metadata-utils.cc:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool FileMetadataUtils::HasIcebergDefaultValue(const SlotDescriptor* slot_desc) {
162 if (!scan_node_->hdfs_table()->IsIcebergTable()) return false;
163
164 const SchemaPath& path = slot_desc->col_path();
165 if (path.size() != 1) return false;
166
167 DCHECK_LT(path.front(), scan_node_->hdfs_table()->col_descs().size());
168 const ColumnDescriptor& col_desc =
169 scan_node_->hdfs_table()->col_descs()[path.front()];
170 return !col_desc.initial_default().empty();
171}
172
173void FileMetadataUtils::AddIcebergColumns(MemPool* mem_pool, Tuple** template_tuple,
174 std::map<const SlotId, const SlotDescriptor*>* slot_descs_written) {

Callers

nothing calls this directly

Calls 5

IsIcebergTableMethod · 0.80
hdfs_tableMethod · 0.80
frontMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected