This commit is contained in:
yihaoDeng 2020-10-26 22:42:54 +00:00
parent 91395c12d0
commit 80b22baabd
1 changed files with 1 additions and 1 deletions

View File

@ -2461,7 +2461,7 @@ static void percentile_function(SQLFunctionCtx *pCtx) {
// the first stage, only acquire the min/max value // the first stage, only acquire the min/max value
if (pInfo->stage == 0) { if (pInfo->stage == 0) {
if (pCtx->preAggVals.isSet) { if (pCtx->preAggVals.isSet) {
double tmin, tmax; double tmin = 0.0, tmax = 0.0;
if (pCtx->inputType >= TSDB_DATA_TYPE_TINYINT && pCtx->inputType <= TSDB_DATA_TYPE_BIGINT) { if (pCtx->inputType >= TSDB_DATA_TYPE_TINYINT && pCtx->inputType <= TSDB_DATA_TYPE_BIGINT) {
tmin = GET_INT64_VAL(&pCtx->preAggVals.statis.min); tmin = GET_INT64_VAL(&pCtx->preAggVals.statis.min);
tmax = GET_INT64_VAL(&pCtx->preAggVals.statis.max); tmax = GET_INT64_VAL(&pCtx->preAggVals.statis.max);