-
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] --empty flag is not working with nested columns in spectrum #912
Labels
bug
Something isn't working
Comments
This is going to require a dbt-redshift specific solution as currently base adapter (nor redshift adapter) are aware of whether a source is a spectrum table |
Likely addressing this will require users to configure their spectrum table references as sources and for dbt-redshift to check if a source is a spectrum table before rendering. We will spike out evaluating if/how we can support this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a new bug?
Current Behavior
Running dbt run --empty , we get a spectrum nested query error.
The compiled code is the following:
If we remove the limit 0 or we remove the subquery having something like this:
The query works on redshift.
Expected Behavior
dbt run --empty works on redshift spectrum.
Steps To Reproduce
Relevant log output
No response
Environment
Additional Context
We figured out that the code that generates this line of code is in relation.py file.
If we remove limit 0, it works.
The text was updated successfully, but these errors were encountered: