Skip to content
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

[CT-1337] [Bug] dbt is writing target/partial_parse.msgpack in current working directory and not using config's project-dir #6055

Closed
2 tasks done
ssassi opened this issue Oct 12, 2022 · 1 comment · Fixed by #6081
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!

Comments

@ssassi
Copy link

ssassi commented Oct 12, 2022

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

This line is creating a new relative path to the target folder instead of an absolute path as this line is correctly doing.

Expected Behavior

To store partial_parse.msgpack in the right folder. Right now, it could create it in current working directory instead of project-dir.

Steps To Reproduce

Couldn't find a way to reproduce it using dbt commands. It is happening on sqlfluff dbt templater when using dbt.parser.manifest to read manifest.

Relevant log output

No response

Environment

- OS: any
- Python: 3.8
- dbt: 1.3

Which database adapter are you using with dbt?

postgres, redshift, snowflake, bigquery, spark

Additional Context

No response

@ssassi ssassi added bug Something isn't working triage labels Oct 12, 2022
@github-actions github-actions bot changed the title [Bug] dbt is writing target/partial_parse.msgpack in current working directory and not using config's project-dir [CT-1337] [Bug] dbt is writing target/partial_parse.msgpack in current working directory and not using config's project-dir Oct 12, 2022
@jtcohen6 jtcohen6 added duplicate This issue or pull request already exists and removed triage labels Oct 16, 2022
@jtcohen6
Copy link
Contributor

jtcohen6 commented Oct 16, 2022

(I accidentally left a comment here intended for dbt-labs/dbt-snowflake#296. Too many tabs open!)

Thanks for opening @ssassi, and pointing to the specific line of code. This sounds like a straightforward bug.

@jtcohen6 jtcohen6 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
@jtcohen6 jtcohen6 removed the duplicate This issue or pull request already exists label Oct 16, 2022
@jtcohen6 jtcohen6 reopened this Oct 16, 2022
@jtcohen6 jtcohen6 added Team:Language support_rotation A good task to pick up during support rotation labels Oct 16, 2022
@jtcohen6 jtcohen6 added good_first_issue Straightforward + self-contained changes, good for new contributors! and removed support_rotation A good task to pick up during support rotation labels Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good_first_issue Straightforward + self-contained changes, good for new contributors!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants