[MDEV-22644] Query processor ran out of internal resources and could not produce a query plan” Created: 2020-05-20  Updated: 2020-06-28  Resolved: 2020-06-28

Status: Closed
Project: MariaDB Server
Component/s: Data Manipulation - Subquery
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: febriyant Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: crash, need_feedback, query-plan

Attachments: JPEG File message_error.jpg    

 Description   

i some query like this

SELECT COUNT(loan_payment) as setcolumn FROM table1 WHERE paydate between {d '2020-05-01'} and {d '2020-05-31'} and period_code = 'MONTHLY' AND company_id = 11111 AND ( emp_id IN ('DO2071406','DO2073897','DO2073464','DO2071522','DO2071400','DO2071401','DO2071402','DO2071403','DO2073538','DO2074215','DO2074233','DO2070850','DO2071618','DO2070442','DO2071741','DO2071739','DO2071740','DO2071751') OR emp_id IN ('DO2071406','DO2073897','DO2073464','DO2071522','DO2071400','DO2071401','DO2071402','DO2071403','DO2073538','DO2074215','DO2074233','DO2070850','DO2071618','DO2070442','DO2071741','DO2071739','DO2071740','DO2071751')OR emp_id IN ('DO2071406','DO2073897','DO2073464','DO2071522','DO2071400','DO2071401','DO2071402','DO2071403','DO2073538','DO2074215','DO2074233','DO2070850','DO2071618','DO2070442','DO2071741','DO2071739','DO2071740','DO2071751')OR emp_id IN ('DO2071406','DO2073897','DO2073464','DO2071522','DO2071400','DO2071401','DO2071402','DO2071403','DO2073538','DO2074215','DO2074233','DO2070850','DO2071618','DO2070442','DO2071741','DO2071739','DO2071740','DO2071751')

i got error message like this

Query processor ran out of internal resources and could not produce a query plan

*detail error message on attachment

this error come from limitation mariadb ? when i using " where in () and or in ()" multiple and so much record ??



 Comments   
Comment by Elena Stepanova [ 2020-05-29 ]

Please check the query you've pasted, it's syntactically incorrect. It's all right to obfuscate column and table names if that's what you were trying to do, but don't change the syntax.

Please also specify which MariaDB version you are using and paste or attach your config files, or the output of show variables from the same session where the error occurs.

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