-
Notifications
You must be signed in to change notification settings - Fork 42
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
Redshift Compression Macro throwing delimiter error #42
Comments
hey @ryansalazar - can you share some more information about how you are running the compression macro? Are you executing it via an operation? Or in a project/model hook? What does the code / command look like? From the screenshot you shared, it looks like dbt is compiling SQL that includes a reference to a table called:
which is obviously not going to be a real object in the database. I actually think that the Let us know if you can share some more information and we'd be happy to try to help out :) |
ok - thanks for that. I think the issue comes up in the code you're using to call the
Can you try quoting the
FWIW, dbt used to catch these undefined variables and throw a warning/error, but there were some Jinja issues that made us walk that change back. Might be worth reinvestigating it to make issues like this one easier to debug in the future! |
Describe the bug
Upon trying to utilize the compression macro I am getting a delimiter error after a run on through CI
Steps to reproduce
This should be reproduce-able by trying to run the compression macro. I have not primary key set here
Expected results
DBT run is not able to successfully - ideally I would get a successful run and see compressed results from table output
Actual results
Error message below

System information
packages:
version: 0.5.0
version: 0.4.1
Which database are you using dbt with?
0.17.0
The text was updated successfully, but these errors were encountered: