You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-10-31 18:30:33 +03:00
MDEV-32854: Make JSON_DEPTH_LIMIT unlimited
This patch is the columnstore-part of the task. Columnstore wanted to have previous 32 depth, so this patch aims at keeping the compatibility.
This commit is contained in:
committed by
Leonid Fedorov
parent
9a2ebebaf9
commit
9fe37d5919
@@ -1,6 +1,7 @@
|
||||
#include "functor_json.h"
|
||||
#include "functioncolumn.h"
|
||||
#include "constantcolumn.h"
|
||||
#include "json_lib.h"
|
||||
#include "rowgroup.h"
|
||||
using namespace execplan;
|
||||
using namespace rowgroup;
|
||||
@@ -160,6 +161,7 @@ bool Func_json_contains::getBoolVal(Row& row, FunctionParm& fp, bool& isNull,
|
||||
CalpontSystemCatalog::ColType& /*type*/)
|
||||
{
|
||||
bool isNullJS = false, isNullVal = false;
|
||||
|
||||
const auto& js = fp[0]->data()->getStrVal(row, isNullJS);
|
||||
const auto& val = fp[1]->data()->getStrVal(row, isNullVal);
|
||||
if (isNullJS || isNullVal)
|
||||
@@ -181,7 +183,6 @@ bool Func_json_contains::getBoolVal(Row& row, FunctionParm& fp, bool& isNull,
|
||||
arg2Parsed = arg2Const;
|
||||
}
|
||||
|
||||
json_engine_t jsEg;
|
||||
initJSEngine(jsEg, getCharset(fp[0]), js);
|
||||
|
||||
if (fp.size() > 2)
|
||||
@@ -193,7 +194,6 @@ bool Func_json_contains::getBoolVal(Row& row, FunctionParm& fp, bool& isNull,
|
||||
goto error;
|
||||
}
|
||||
|
||||
json_engine_t valEg;
|
||||
initJSEngine(valEg, getCharset(fp[1]), arg2Val);
|
||||
|
||||
if (json_read_value(&jsEg) || json_read_value(&valEg))
|
||||
|
||||
Reference in New Issue
Block a user