You've already forked mariadb-columnstore-engine
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:
committed by
Leonid Fedorov
parent
aa0cf1399b
commit
9e37ab82d8
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user