1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

chore(rbo,rules): fixes to compile MCS with ES 10.6

This commit is contained in:
drrtuy
2025-07-18 16:32:08 +00:00
parent a01c883e07
commit f881bae496
5 changed files with 4 additions and 8 deletions

View File

@ -6316,7 +6316,7 @@ void extractColumnStatistics(Item_field* ifp, gp_walk_info& gwi)
}
}
#else
void extractColumnStatistics(Item_field* ifp, gp_walk_info& gwi)
void extractColumnStatistics(Item_field* /*ifp*/, gp_walk_info& /*gwi*/)
{
}
#endif

View File

@ -28,7 +28,6 @@
#include <vector>
#include "basic/string_utils.h"
#include "idb_mysql.h"
#include "sql_statistics.h"
#include "ha_mcs_sysvars.h"
#include "dmlpkg.h"

View File

@ -98,8 +98,6 @@ SCSEP SelectSubQuery::transform()
// Insert column statistics
fGwip.mergeTableStatistics(gwi.tableStatisticsMap);
// std::cout << "fGwip.columnStatisticsMap 2 size " << fGwip.columnStatisticsMap.size() << std::endl;
// std::cout << "gwi.columnStatisticsMap 2 size " << gwi.columnStatisticsMap.size() << std::endl;
// Insert subselect CSEP
fGwip.subselectList.push_back(csep);

View File

@ -87,7 +87,7 @@ struct Histogram_bucket
longlong ndv;
};
class Histogram_json_hb final : public Histogram_base
class Histogram_json_hb
{
std::vector<Histogram_bucket> buckets;

View File

@ -58,7 +58,7 @@ bool matchParallelCES(execplan::CalpontSelectExecutionPlan& csep)
{
auto tables = csep.tableList();
// This is leaf and there are no other tables at this level in neither UNION, nor derived table.
// WIP filter out CSEPs with orderBy, groupBy, having
// TODO filter out CSEPs with orderBy, groupBy, having
// Filter out tables that were re-written.
return tables.size() == 1 && !tables[0].isColumnstore() && !tableIsInUnion(tables[0], csep);
}
@ -76,13 +76,12 @@ execplan::ParseTree* filtersWithNewRangeAddedIfNeeded(execplan::SCSEP& csep, exe
auto* filterColLeftOp = new execplan::ConstantColumnUInt(bound.second, 0, 0);
// set TZ
// There is a question with ownership of the const column
// WIP here we lost upper bound value if predicate is not changed to weak lt
// TODO here we lost upper bound value if predicate is not changed to weak lt
execplan::SOP ltOp = boost::make_shared<execplan::Operator>(execplan::PredicateOperator("<"));
ltOp->setOpType(filterColLeftOp->resultType(), tableKeyColumnLeftOp->resultType());
ltOp->resultType(ltOp->operationType());
auto* sfr = new execplan::SimpleFilter(ltOp, tableKeyColumnLeftOp, filterColLeftOp);
// auto tableKeyColumn = derivedSCEP->returnedCols().front();
auto tableKeyColumnRightOp = new execplan::SimpleColumn(column);
tableKeyColumnRightOp->resultType(column.resultType());
// TODO hardcoded column type and value