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

MCOL-4174 Review/refactor frontend/connector code

This commit is contained in:
Alexander Barkov
2020-10-20 15:35:36 +04:00
committed by Roman Nozdrin
parent 68244ab957
commit 129d5b5a0f
70 changed files with 6982 additions and 4927 deletions

View File

@ -352,7 +352,7 @@ void wideDecimalOrLongDouble(const uint64_t colProj,
{
if ((type == CalpontSystemCatalog::DECIMAL
|| type == CalpontSystemCatalog::UDECIMAL)
&& datatypes::Decimal::isWideDecimalType(precisionProj[colProj]))
&& datatypes::Decimal::isWideDecimalTypeByPrecision(precisionProj[colProj]))
{
typeAgg.push_back(type);
scaleAgg.push_back(scaleProj[colProj]);
@ -758,7 +758,7 @@ void TupleAggregateStep::configDeliveredRowGroup(const JobInfo& jobInfo)
{
const auto& colType = jobInfo.nonConstCols[i]->resultType();
if (datatypes::Decimal::isWideDecimalType(colType))
if (colType.isWideDecimalType())
{
*scaleIter = colType.scale;
*precisionIter = colType.precision;
@ -776,7 +776,7 @@ void TupleAggregateStep::configDeliveredRowGroup(const JobInfo& jobInfo)
{
const auto& colType = jobInfo.nonConstDelCols[i]->resultType();
if (datatypes::Decimal::isWideDecimalType(colType))
if (colType.isWideDecimalType())
{
*scaleIter = colType.scale;
*precisionIter = colType.precision;