You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date: 2020-05-01 21:46:07 +0200
From: Martin van Dinther <<martin.van.dinther>>
To: SQL devs <>
Version: 11.35.19 (Nov2019-SP3)
CC: @kutsurak
Last updated: 2020-07-27 09:30:15 +0200
Comment 27690
Date: 2020-05-01 21:46:07 +0200
From: Martin van Dinther <<martin.van.dinther>>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:74.0) Gecko/20100101 Firefox/74.0
Build Identifier:
json.keyarray(json '{ "":0 }') should return: [""].
Instead it returns: Error: Could not allocate space
This is probably due to uninitialised/incorrect length when allocating memory as:
json.keyarray(json '{ "a":0 }') returns: ["a"].
Note json.isvalid(json '{ "":0 }')
and json.isobject(json '{ "":0 }')
both return true so '{ "":0 }' is a valid json object.
Reproducible: Always
Steps to Reproduce:
select json.keyarray(json '{ "":0 }');
-- returns: Error: Could not allocate space
select json.isvalid(json '{ "":0 }');
select json.isobject(json '{ "":0 }');
-- returns: true
Date: 2020-05-01 21:46:07 +0200
From: Martin van Dinther <<martin.van.dinther>>
To: SQL devs <>
Version: 11.35.19 (Nov2019-SP3)
CC: @kutsurak
Last updated: 2020-07-27 09:30:15 +0200
Comment 27690
Date: 2020-05-01 21:46:07 +0200
From: Martin van Dinther <<martin.van.dinther>>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:74.0) Gecko/20100101 Firefox/74.0
Build Identifier:
json.keyarray(json '{ "":0 }') should return: [""].
Instead it returns: Error: Could not allocate space
This is probably due to uninitialised/incorrect length when allocating memory as:
json.keyarray(json '{ "a":0 }') returns: ["a"].
Note json.isvalid(json '{ "":0 }')
and json.isobject(json '{ "":0 }')
both return true so '{ "":0 }' is a valid json object.
Reproducible: Always
Steps to Reproduce:
select json.keyarray(json '{ "":0 }');
-- returns: Error: Could not allocate space
select json.isvalid(json '{ "":0 }');
select json.isobject(json '{ "":0 }');
-- returns: true
select json.keyarray(json '{ "":"" }');
select json.isvalid(json '{ "":"" }');
select json.isobject(json '{ "":"" }');
select json.keyarray(json '{ "a":0 }');
-- returns: ["a"]
Actual Results:
sql>select json.keyarray(json '{ "":0 }');
Could not allocate space
sql>select json.isvalid(json '{ "":0 }');
+-------+
| L2 |
+=======+
| true |
+-------+
1 tuple
sql>select json.isobject(json '{ "":0 }');
+-------+
| L2 |
+=======+
| true |
+-------+
1 tuple
sql>
sql>select json.keyarray(json '{ "":"" }');
Could not allocate space
sql>select json.isvalid(json '{ "":"" }');
+-------+
| L2 |
+=======+
| true |
+-------+
1 tuple
sql>select json.isobject(json '{ "":"" }');
+-------+
| L2 |
+=======+
| true |
+-------+
1 tuple
sql>
sql>select json.keyarray(json '{ "a":0 }');
+-------+
| L2 |
+=======+
| ["a"] |
+-------+
1 tuple
sql>
Expected Results:
sql>select json.keyarray(json '{ "":0 }');
+------+
| L2 |
+======+
| [""] |
+------+
1 tuple
sql>select json.keyarray(json '{ "":"" }');
+------+
| L2 |
+======+
| [""] |
+------+
1 tuple
See JSONkeyArray(json *ret, json *js) in
https://dev.monetdb.org/hg/MonetDB/file/Nov2019/monetdb5/modules/atoms/json.c
Comment 27851
Date: 2020-06-15 17:42:22 +0200
From: MonetDB Mercurial Repository <>
Changeset c932190780ff made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=c932190780ff
Changeset description:
Comment 27868
Date: 2020-06-22 13:42:44 +0200
From: MonetDB Mercurial Repository <>
Changeset e5f5ab2d3769 made by Panagiotis Koutsourakis kutsurak@monetdbsolutions.com in the MonetDB repo, refers to this bug.
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=e5f5ab2d3769
Changeset description:
Comment 27869
Date: 2020-06-22 13:42:48 +0200
From: MonetDB Mercurial Repository <>
Changeset 1ba2ed8873df made by Panagiotis Koutsourakis kutsurak@monetdbsolutions.com in the MonetDB repo, refers to this bug.
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=1ba2ed8873df
Changeset description:
The text was updated successfully, but these errors were encountered: