Skip to content

VTGate hanging for queries that fail in MySQL #18049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
systay opened this issue Mar 26, 2025 · 0 comments
Open

VTGate hanging for queries that fail in MySQL #18049

systay opened this issue Mar 26, 2025 · 0 comments

Comments

@systay
Copy link
Collaborator

systay commented Mar 26, 2025

When running a recursive CTE that doesn't have a limit, MySQL fails the query with:

> with recursive cte as (select 1 as n union all select n+1 from cte)
select *
from cte

ERROR 3636 (HY000): Recursive query aborted after 1001 iterations. Try increasing @@cte_max_recursion_depth to a larger value.0

Vitess also fails correctly in OLTP mode, but in OLAP mode the connection just hangs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant