You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user is reporting an issue when running dbt compile. The error is for a schema test .sql artifact, and it reads:
No such file or directory: "target\\compiled\\<230 more characters>.sql"
My guess is that the full path to this file is too long, and Windows either truncates the file path, or does something else unexpected, when dbt tries to write out this sql file.
Instead, let's catch this error, log a warning, and move on. Alternatively if there's a way to increase the file path length on windows to beyond ~260 chars, we should do that.
This error may start happening for folks on 0.17.0 because we are now including more information (like the schema.yml file name) in the path for the .sql artifact.
Steps To Reproduce
Run dbt compile on a project that would try to write a filepath > 260 chars long
Expected behavior
dbt should not fail here, but it's ok for dbt to omit writing these artifacts if need be
The output of dbt --version:
0.17.0
The operating system you're using: Windows 10 (Windows Server 2019)
The output of python --version: TBD
The text was updated successfully, but these errors were encountered:
I believe this is pretty fixable! We need to prefix all our paths with r'\\?\' on windows, and make sure to normalize any paths we find because that syntax doesn't accept any / in paths. This is mostly hard because it's tedious to get every spot that writes files, not because it's actually a hard problem.
Right on, thanks @beckjake! This one isn't really an 0.17.0 regression -- I'd be happy to do a cheapo version for 0.17.1 (that just catches the error and logs a warning) in the near-term, then do a more fundamental overhaul of windows pathing for our next scheduled feature release. What do you think?
Describe the bug
A user is reporting an issue when running
dbt compile
. The error is for a schema test .sql artifact, and it reads:My guess is that the full path to this file is too long, and Windows either truncates the file path, or does something else unexpected, when dbt tries to write out this sql file.
Instead, let's catch this error, log a warning, and move on. Alternatively if there's a way to increase the file path length on windows to beyond ~260 chars, we should do that.
This error may start happening for folks on 0.17.0 because we are now including more information (like the
schema.yml
file name) in the path for the.sql
artifact.Steps To Reproduce
dbt compile
on a project that would try to write a filepath > 260 chars longExpected behavior
The output of
dbt --version
:The operating system you're using: Windows 10 (Windows Server 2019)
The output of
python --version
: TBDThe text was updated successfully, but these errors were encountered: