Closed VoRCeK closed 1 year ago
Hi! Thanks for your report.
Can you provide the dbtvault version please and provide your model code. This is not happening in our tests and is a very fundamental issue, so I believe it may be to do with your configuration. If not, we probably need to improve the error handling!
Thanks
@VoRCeK Hi! I assume this was closed because you found the issue. Can you explain what it was please? We'd like to add in error handling and an error message for what happened if it wasn't obvious to you!
Thanks :)
Describe the bug In the link.sql macro for Snowflake, the final comma (",") in row 48 & 50 is causing the compiled SQL to fail for having that extra comma before the FROM selection in the statement.
The entire string, including commas, are being created by the dbtvault.prefix macro (which is working fine). Everywhere else this dbtvault.prefix is used, there is no final comma in the line. Examples: Rows 53, 54, 96, 97 & 107
Environment
dbt version: 1.4.4 dbtvault version: Database/Platform:
To Reproduce Steps to reproduce the behavior:
dbt compile --select <your_model>
Expected behavior This extra comma would not be in the compiled code.