[MDEV-24244] Got error 174 'ParseString: Out of memory' from CONNECT Created: 2020-11-18  Updated: 2022-04-12

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.4.11
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Kal Lu (Inactive) Assignee: Michael Widenius
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Mac OS 10.15.7, Core i7, 32G Memory


Attachments: File era_stage_2020-11-18.sql    

 Description   

I have a json file of a size about 2MB.

There's no issue loading it CONNECT tables. However I got "Out of memory" error when trying to read the tables.

Here's the query:

 SELECT * 
 FROM `era_stage`.`era_stage_bpr_financial_information_0`  bpr
 JOIN `era_stage`.`era_stage_trn_trace_number_0`  trn ON trn.trace_number_id = bpr.financial_information_id
 JOIN `era_stage`.`era_stage_n1_entity_identification_0`  n1 ON n1.parent_id = bpr.financial_information_id;

Each table above only have 1 or 2 records.

if I remove any of the JOINs, the query executed with no problem.

But with both JOINs, it gave me this error "Got error 174 'ParseString: Out of memory' from CONNECT".

As the query is expected to return only a couple records, the error message is kind of confusing. I did try increasing `connect_work_size` to 536870912 (512M) though, didn't help. Wonder if it has anything to do with memory.

I attached sql dump for you test the query above.


Generated at Thu Feb 08 09:28:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.