You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4174 Review/refactor frontend/connector code
This commit is contained in:
committed by
Roman Nozdrin
parent
68244ab957
commit
129d5b5a0f
@ -31,7 +31,6 @@
|
||||
#include "spinlock.h"
|
||||
#include "vlarray.h"
|
||||
|
||||
#include "widedecimalutils.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace rowgroup;
|
||||
@ -110,7 +109,7 @@ TupleJoiner::TupleJoiner(
|
||||
|
||||
if (smallRG.isUnsigned(smallKeyColumns[0]))
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[0]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[0])))
|
||||
{
|
||||
@ -125,7 +124,7 @@ TupleJoiner::TupleJoiner(
|
||||
}
|
||||
else
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[0]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[0])))
|
||||
{
|
||||
@ -225,7 +224,7 @@ TupleJoiner::TupleJoiner(
|
||||
discreteValues[i] = false;
|
||||
if (isUnsigned(smallRG.getColTypes()[smallKeyColumns[i]]))
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[i]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[i])))
|
||||
{
|
||||
@ -240,7 +239,7 @@ TupleJoiner::TupleJoiner(
|
||||
}
|
||||
else
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[i]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[i])))
|
||||
{
|
||||
@ -802,7 +801,7 @@ void TupleJoiner::doneInserting()
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (datatypes::Decimal::isWideDecimalType(
|
||||
else if (datatypes::isWideDecimalType(
|
||||
smallRow.getColType(smallKeyColumns[col]),
|
||||
smallRow.getColumnWidth(smallKeyColumns[col])))
|
||||
{
|
||||
@ -1165,7 +1164,7 @@ void TupleJoiner::updateCPData(const Row& r)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (datatypes::Decimal::isWideDecimalType(
|
||||
else if (datatypes::isWideDecimalType(
|
||||
r.getColType(colIdx),
|
||||
r.getColumnWidth(colIdx)))
|
||||
{
|
||||
@ -1205,7 +1204,7 @@ void TupleJoiner::updateCPData(const Row& r)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (datatypes::Decimal::isWideDecimalType(
|
||||
else if (datatypes::isWideDecimalType(
|
||||
r.getColType(colIdx),
|
||||
r.getColumnWidth(colIdx)))
|
||||
{
|
||||
@ -1745,7 +1744,7 @@ boost::shared_ptr<TupleJoiner> TupleJoiner::copyForDiskJoin()
|
||||
ret->discreteValues[i] = false;
|
||||
if (isUnsigned(smallRG.getColTypes()[smallKeyColumns[i]]))
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[i]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[i])))
|
||||
{
|
||||
@ -1760,7 +1759,7 @@ boost::shared_ptr<TupleJoiner> TupleJoiner::copyForDiskJoin()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (datatypes::Decimal::isWideDecimalType(
|
||||
if (datatypes::isWideDecimalType(
|
||||
smallRG.getColType(smallKeyColumns[i]),
|
||||
smallRG.getColumnWidth(smallKeyColumns[i])))
|
||||
{
|
||||
|
Reference in New Issue
Block a user