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

MCOL-5607: JSON function use crashes query execution

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:
Serguey Zefirov
2023-11-16 20:49:29 +03:00
committed by Leonid Fedorov
parent aa0cf1399b
commit 9e37ab82d8
5 changed files with 97 additions and 23 deletions

View File

@ -58,6 +58,11 @@ typedef std::vector<execplan::SPTP> FunctionParm;
constexpr const int32_t MAX_MICROSECOND_PRECISION = 6;
/** @brief Func class
*
* @desc IMPOTRANT: 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
{