-
Notifications
You must be signed in to change notification settings - Fork 59
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
[Bug] Runtime Error 'Lexer' object has no attribute '_SQL_REGEX' #710
Comments
Re-opening until this is deployed. |
User confirmed this is resolved. |
Hiya @mikealfare , user just got back to us saying this has occurred again today and asked if this was backported to 1.6 (which I can see in the PR that it was). Should this still be occurring? |
If it's still occurring in the latest version, than this is a different issue than what we saw in |
Hi @mikealfare confirming that they are running with the following:
It's the same error:
|
Thanks for confirming. We'll need to look into this more then as it appears to be an unknown issue. |
Hiya @mikealfare hope you're well. Just wanted to check in on this one and see whether we have any idea what's happening? :/ user just reached out to follow-up on an ETA. I have asked them whether this has occurred again since they last reported this on 13th Feb. Thank you! :) |
@Tonayya is there currently a work around? Sorry, just joined in here and getting up to speed. |
@martynydbt thanks for getting back to me. So basically re-running the jobs usually does the trick but it is causing an issue intermittently and disrupting their flow. It has been impacting a few of our customers for quite some time now. |
Hi @martynydbt hope you're well. Just checking in to see if we know anything further about this? Was there any info needed from this side at all? |
Hi all, just wondering if any updates on this? :/ |
We also see this sometimes. Here's the log from today morning run in Jenkins:
|
Hello. I just faced this issue.
Version info:
|
I reran the same process again, it works fine after that. Seems to be an intermittent issue. |
This is either done or no longer an issue. |
Is this a new bug in dbt-redshift?
Current Behavior
dbt Cloud users experiencing an intermittent runtime error in random job runs which stems from the
sqlparse
library that dbt uses(link). But this appears to only be affecting Redshift connected projects. Issue was also reported on Discourse here.Some notes from the internal correspondence with Core team:
sqlparse
is a library that we use to combine the SQL from ephemeral models with the non-ephemeral model SQL. It looks like this error would be an even more edge-casey failure than the one that we addressed in the referenced ticket.Expected Behavior
Job runs not failing with the aforementioned error.
Steps To Reproduce
There's no specific step to reproduce this as it happens on random intervals and so far the only consistent thing found in the behaviour has been the
dbt-redshift
adapter. Error has occurred on dbt version 1.5, 1.6 and 1.7.Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: