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

MCOL-4743 Regression: TIME_TO_SEC(const_expr) erroneosly returns 0

This commit is contained in:
Alexander Barkov
2021-06-02 15:08:20 +04:00
parent 8a68adcac4
commit d61690748e
5 changed files with 27 additions and 5 deletions

View File

@ -238,7 +238,10 @@ void TupleConstantStep::constructContanstRow(const JobInfo& jobInfo)
case CalpontSystemCatalog::DECIMAL:
case CalpontSystemCatalog::UDECIMAL:
{
fRowConst.setIntField(c.decimalVal.value, *i);
if (fRowGroupOut.getColWidths()[*i] > datatypes::MAXLEGACYWIDTH)
fRowConst.setInt128Field(c.decimalVal.TSInt128::getValue(), *i);
else
fRowConst.setIntField(c.decimalVal.value, *i);
break;
}