-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Snapshot strategies: newline for subquery #6780
Conversation
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @RobbertDM |
CLA: signed again with case sensitive GitHub username this time 🤔 |
Thanks for opening this PR @RobbertDM ! A bookkeeping piece (which will resolve the other failing CI check you are seeing):
Speaking of CI, we'll want to:
|
Hey @RobbertDM, thanks for your ping. I think Doug's right to make sure we have a test for this case. We have snapshot tests in |
Thanks for the guidance. I added a test file but I have little idea of what I am doing, so please review carefully :-) |
Awesome!! Thanks for the fast turnaround. It's basically all but there. You'll have to follow flake's directions of nixing unneeded names and such. It's perfectly fine you went with the conventions you saw. I think they pretty much look good for this case. We'll see with the adapter test results on your CI here. |
Thanks again for working on this PR @RobbertDM ! TL;DRI think you'll ultimately need to add lines like the following: seeds__seed_csv, and: @pytest.fixture(scope="class")
def seeds(self):
return {"seed.csv": seeds__seed_csv} Do you want to give that a try? Please let us know if you run into any problems and we'll try to help out. More detailI took a peek at the error during CI:
It's trying to snapshot a table named I didn't confirm, but I suspect that you need build the seed table with something like the following two pieces:
I'm assuming the |
Hey @dbeatty10 thanks a lot for the detailed help, I wanted to give up after getting nothing useful from CI. |
Happy to help @RobbertDM ! I saw that error listed here. It sounds like you looked at this top one: And I scrolled down a bit and dug into one of these (which might all be basically identical): |
The CI isn't quite happy yet. I accidentally steered you wrong based on your test setup 😅 . If you update |
Yeah sorry, I wasn't thinking, just copy pasted :s |
@RobbertDM
Should be all set now. :) (I also added a comment to the macro since we don't want someone coming along and cleaning up that whitespace you added at later date) @VersusFacit |
Huge thanks to everyone for keeping us alive and getting it across the finish line |
Woah, thanks a lot for all the help and explanation everyone. I'll definitely come back to this PR if I make another one. |
resolves #6781
Description
If you don't add these, the
) subq
will be appended to the last line of the snapshot query, which could be a comment line.Checklist
changie new
to create a changelog entry