1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

1. For BETWEEN/IN functions in the SELECT clause, build a function column

2. CASE function should return false when it evaluates to NULL (e.g. due to absense of ELSE clause)

3. Set the operation type of IN function to varchar if all parameters are char/varchar/text
This commit is contained in:
Gagan Goel
2019-08-18 21:18:15 -04:00
parent 489c09c4dc
commit f5af10a0c4
4 changed files with 20 additions and 26 deletions

View File

@ -485,7 +485,7 @@ bool Func_simple_case::getBoolVal(Row& row,
uint64_t i = simple_case_cmp(row, parm, isNull, operationColType);
if (isNull)
return joblist::BIGINTNULL;
return false;
ParseTree* lop = parm[i]->left();
ParseTree* rop = parm[i]->right();
@ -651,7 +651,7 @@ bool Func_searched_case::getBoolVal(Row& row,
uint64_t i = searched_case_cmp(row, parm, isNull);
if (isNull)
return joblist::BIGINTNULL;
return false;
ParseTree* lop = parm[i]->left();
ParseTree* rop = parm[i]->right();