You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4188 Regression fixes for MCOL-641.
1. Make PredicateOperator::setOpType() function wide decimal aware. 2. Added support for wide decimal in jlf_subquery.cpp::getColumnValue() used in scalar subqueries. 3. Fixed the column index used for fetching wide decimal values from a Row when a wide decimal field is used in the order by clause.
This commit is contained in:
@ -172,8 +172,11 @@ int WideDecimalCompare::operator()(IdbCompare* l, Row::Pointer r1, Row::Pointer
|
||||
l->row2().setData(r2);
|
||||
|
||||
int ret = 0;
|
||||
int128_t v1 = *(l->row1().getBinaryField_offset<int128_t>(keyColumnOffset));
|
||||
int128_t v2 = *(l->row2().getBinaryField_offset<int128_t>(keyColumnOffset));
|
||||
|
||||
int128_t v1, v2;
|
||||
l->row1().getInt128Field(fSpec.fIndex, v1);
|
||||
l->row2().getInt128Field(fSpec.fIndex, v2);
|
||||
|
||||
bool v1IsNull = v1 == datatypes::Decimal128Null;
|
||||
bool v2IsNull = v2 == datatypes::Decimal128Null;
|
||||
|
||||
|
Reference in New Issue
Block a user