1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

feat(optimizer): collect EI statistics for a first column in existing tables indexes

This commit is contained in:
drrtuy
2025-07-12 14:16:52 +00:00
parent 9f5ddd33bc
commit dfddfedfe5
2 changed files with 41 additions and 6 deletions

View File

@@ -28,6 +28,7 @@
#include <vector>
#include "basic/string_utils.h"
#include "idb_mysql.h"
#include "sql_statistics.h"
#include "ha_mcs_sysvars.h"
#include "dmlpkg.h"
@@ -110,6 +111,7 @@ struct gp_walk_info
execplan::CalpontSelectExecutionPlan::ReturnedColumnList orderByCols;
std::vector<Item*> extSelAggColsItems;
execplan::CalpontSelectExecutionPlan::ColumnMap columnMap;
std::unordered_map<std::string, std::vector<Histogram_bucket>> columnStatisticsMap;
// This vector temporarily hold the projection columns to be added
// to the returnedCols vector for subquery processing. It will be appended
// to the end of returnedCols when the processing is finished.