1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Fix -Wtype-limits

This commit is contained in:
Alexey Antipovsky
2020-11-10 18:23:21 +00:00
parent f4a6294c95
commit 0e29b0b0f9
11 changed files with 75 additions and 19 deletions

View File

@ -78,6 +78,8 @@ using namespace querytele;
#include "windowfunctionstep.h"
using namespace joblist;
#include "checks.h"
namespace
{
@ -722,7 +724,7 @@ void WindowFunctionStep::initialize(const RowGroup& rg, JobInfo& jobInfo)
string fn = boost::to_upper_copy(wc->functionName());
if ( (fn == "MEDIAN" || fn == "PERCENTILE_CONT" || fn == "PERCENTILE_DISC") &&
peerIdx[0] >= 0 && peerIdx[0] < types.size() )
utils::is_nonnegative(peerIdx[0]) && peerIdx[0] < types.size() )
ct = types[peerIdx[0]];
// create the functor based on function name