◆ FieldIdMapper()
81712 {
81713 for (
idx_t col_idx = 0; col_idx < columns.size(); col_idx++) {
81714 auto &column = columns[col_idx];
81715 if (column.identifier.IsNull()) {
81716
81717 break;
81718 }
81719 auto field_id = column.GetIdentifierFieldId();
81720 field_id_map.emplace(field_id, MultiFileLocalColumnId(col_idx));
81721 }
81722 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ Create()
◆ Find()
Implements duckdb::ColumnMapper.
81727 {
81728 D_ASSERT(!column.identifier.IsNull());
81729 auto entry = field_id_map.find(column.GetIdentifierFieldId());
81730 if (entry == field_id_map.end()) {
81731 return optional_idx();
81732 }
81733 return entry->second.GetId();
81734 }
◆ GetDefault()
81735 {
81736 auto &default_val = column.default_expression;
81737 if (!default_val) {
81738 throw InternalException("No default expression in FieldId Map");
81739 }
81740 if (default_val->type != ExpressionType::VALUE_CONSTANT) {
81741 throw NotImplementedException("Default expression that isn't constant is not supported yet");
81742 }
81743 auto &constant_expr = default_val->Cast<ConstantExpression>();
81744
81745 return make_uniq<BoundConstantExpression>(constant_expr.value);
81746 }
◆ GetDefaultExpression()
◆ MapCount()
| idx_t duckdb::FieldIdMapper::MapCount |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this struct was generated from the following file: