-
Notifications
You must be signed in to change notification settings - Fork 167
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
Make GoogleCloudServiceAccountDictProfileMapping dataset profile argument optional #837
Comments
🤖 That sounds like a great idea! Making the dataset profile argument optional could provide more flexibility for users. Your proposed solution seems like a step in the right direction. We encourage you and your colleague to go ahead and attempt the modification. Thank you for your willingness to contribute to the project! This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
🤖 To request a review for your PR #839, you can follow these steps:
If you don't see the "Reviewers" section, it might be because you don't have the necessary permissions. In that case, you can leave a comment on the PR asking for a review from the relevant person or team. Regarding the proposed change to make the dataset profile argument optional in As for the modification you mentioned, it would involve changing the Please ensure that your changes are in line with the Cosmos Contributing Guide and that all tests pass before requesting a review. If you have any further questions or need more guidance, feel free to ask. For more information, you can refer to the Cosmos codebase, specifically the GoogleCloudServiceAccountDictProfileMapping class, and the Cosmos Contributing Guide. I hope this helps! If you have any other questions, don't hesitate to ask. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
#1017) This PR follows the methodology in #683 by modifying the GCP `GoogleCloudServiceAccountDictProfileMapping()` `profile_args` not require a dataset as a required argument. DAG RUN <img width="1473" alt="Screenshot 2024-06-05 at 6 50 04 PM" src="https://github.com/astronomer/astronomer-cosmos/assets/98807258/81b127b9-c5e5-4983-9efe-bbf00d81914f"> Co-authored-by: "Ollie Ma" <oliver.zheyi.ma@gmail.com> Original PR by @oliverrmaa: #839 Closes #837
#1017) This PR follows the methodology in #683 by modifying the GCP `GoogleCloudServiceAccountDictProfileMapping()` `profile_args` not require a dataset as a required argument. DAG RUN <img width="1473" alt="Screenshot 2024-06-05 at 6 50 04 PM" src="https://github.com/astronomer/astronomer-cosmos/assets/98807258/81b127b9-c5e5-4983-9efe-bbf00d81914f"> Co-authored-by: "Ollie Ma" <oliver.zheyi.ma@gmail.com> Original PR by @oliverrmaa: #839 Closes #837
It seems the Having a dbt project with
And the following
Fails in both dbt 1.5 and 1.8: Running
Running
I also attempted to do this while |
astronomer#1017) This PR follows the methodology in astronomer#683 by modifying the GCP `GoogleCloudServiceAccountDictProfileMapping()` `profile_args` not require a dataset as a required argument. DAG RUN <img width="1473" alt="Screenshot 2024-06-05 at 6 50 04 PM" src="https://github.com/astronomer/astronomer-cosmos/assets/98807258/81b127b9-c5e5-4983-9efe-bbf00d81914f"> Co-authored-by: "Ollie Ma" <oliver.zheyi.ma@gmail.com> Original PR by @oliverrmaa: astronomer#839 Closes astronomer#837
Context
Given the issue here and the discussion around it in slack, it follows that it would not be too far off for other profile mapping classes (like GCP) to have their schema (dataset in GCP terms) arguments made optional.
The configurations in dbt (profiles.yml, dbt_project.yml, model level configs etc.) are meant to provide the dataset. As such, me and my team's initial thoughts were to not provide any arguments here since usually we would rely on this being handled inside of dbt instead of it being hard coded at the DAG (orchestration) level.
Solution
I believe its possible modifying this line here and the associated code similarly to this issue here would be the right path.
Me and/or my colleague are happy to to attempt this modification if there are no objections to this proposed change. Please let us know, thanks
The text was updated successfully, but these errors were encountered: