[MDEV-32949] Undesired max_recursive_iterations warning Created: 2023-12-05 Updated: 2023-12-05 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 11.1.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Tadas Balaišis | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Win64 |
||
| Description |
|
Sample query
runs OK, but on insert or temporary table create:
it pops with error/warning "Query execution was interrupted. The query exceeded max_recursive_iterations = 100000. The query result may be incomplete". |
| Comments |
| Comment by Sergei Golubchik [ 2023-12-05 ] |
|
you don't really want to disable the warning, because it says that in the second case CTE generates 100,000 rows (and hits the limit), while in the first case it — I suppose — generates only 5, as requested. What you want is the second CTE to generate only 5 rows and not to waste time going all the way to 100,000. |
| Comment by Tadas Balaišis [ 2023-12-05 ] |
|
I'm not as so confident as you are to state what does other person really want. But yes, I want both things. First - that insert /CTAS would work as fast as select does. Second - that warning wouldn't appear. |