We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running dbt run --empty , we get a spectrum nested query error.
dbt run --empty
Database Error in model base_***** (models/base/*****/base_*****.sql) Spectrum nested query error
The compiled code is the following:
create table "DATABASE"."SCHEMA"."base_*****__dbt_tmp" as ( select * from (select * from "DATABASE"."SCHEMA"."TABLE" where false limit 0) );
If we remove the limit 0 or we remove the subquery having something like this:
create table "DATABASE"."SCHEMA"."base_*****__dbt_tmp" as ( select * from "DATABASE"."SCHEMA"."TABLE" where false limit 0 );
The query works on redshift.
dbt run --empty works on redshift spectrum.
No response
- OS: Mac - Python:3.9.18 - dbt-core:1.8.1 - dbt-redshift:1.8.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is this a new bug in dbt-redshift?
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
No response
The text was updated successfully, but these errors were encountered: