1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

fix(funcexp): MCOL-5607: JSON function use crashes query execution (#3028)

JSON functions were implemented violating an assumption of their
pureness, as they should not have any state. This concrete patch
fixes implementation of JSON_VALUE function.
This commit is contained in:
Sergey Zefirov
2023-11-21 23:46:03 +03:00
committed by Leonid Fedorov
parent 1935c9c1da
commit 2eca3ee656
5 changed files with 97 additions and 22 deletions

View File

@ -54,6 +54,11 @@ namespace funcexp
typedef std::vector<execplan::SPTP> FunctionParm;
/** @brief Func class
*
* @desc IMPORTANT: functions are pure transformers, they should
* not have state shared between invocations. This is so because
* functions' objects are, essentially, singletons and the same
* objects will be used in diffeent threads.
*/
class Func
{