| 159 | } |
| 160 | |
| 161 | bool 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 | |
| 173 | void FileMetadataUtils::AddIcebergColumns(MemPool* mem_pool, Tuple** template_tuple, |
| 174 | std::map<const SlotId, const SlotDescriptor*>* slot_descs_written) { |
nothing calls this directly
no test coverage detected