-
-
Notifications
You must be signed in to change notification settings - Fork 20
RecursionError: maximum recursion depth exceeded #682
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
Labels
bug
Something isn't working
Comments
👋 I have the same issue. So just in case it helps, here is another example to test with. Uncommenting any of the GRANTs in the block of commented out grants in the middle causes the issue.
Formattable SQL, until one of the commented out GRANTs is uncommented.
Result
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A fairly simple SQL file with DROP statements can cause recursion errors. It looks like it's the number of statements that is the problem, not the actual statements. In the example below, you can see that truncating the file to 180 lines works, add another 20 lines, fails, keep only the 20 lines in question, works.
To Reproduce
file
Expected behavior
Success.
Actual behavior
output excerpt
Additional context
What is the output of
sqlfmt --version
?What is the output of
pip list
(orpipx list
if you installed using pipx)?The text was updated successfully, but these errors were encountered: