364891 {
364892 if (stmt.extra_info.setop_type != SetOperationType::NONE) {
364893 GatherSetOpAliases(stmt.extra_info.setop_type, stmt.names, stmt.extra_info.bound_children, reorder_idx);
364894 return;
364895 }
364896
364897
364898 auto &select_names = stmt.names;
364899
364900 D_ASSERT(reorder_idx.size() == select_names.size());
364901 for (
idx_t i = 0; i < select_names.size(); i++) {
364902 auto &name = select_names[i];
364903
364904 auto entry = bind_state.alias_map.find(name);
364905
364907
364908 if (entry == bind_state.alias_map.end()) {
364909
364910 bind_state.alias_map[name] =
index;
364911 }
364912 }
364913
364914 auto &select_list = stmt.extra_info.original_expressions;
364915 for (
idx_t i = 0; i < select_list.size(); i++) {
364916 auto &expr = select_list[i];
364918
364919 auto expr_entry = bind_state.projection_map.find(*expr);
364920 if (expr_entry != bind_state.projection_map.end()) {
364921
364922
364923 if (expr_entry->second != index) {
364925 }
364926 } else {
364927
364928 bind_state.projection_map[*expr] =
index;
364929 }
364930 }
364931}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117