-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: implement helper init command for creating snowflake objects #21
Comments
The use cases that I was thinking of for this issue are already handled within this target. In comparison to the pipelinewise variant the user no longer needs to create any objects or assign permissions, thats all done by this target during the sync. I'll close this for now but if more use cases come up for this feature we can reopen it. |
Reopening this because meltano/hub#1407 mentions more requirements for someone with a totally empty account. We could add an init command here that the hub recommends instead of the hub documenting a bunch of sql scripts. |
Closes #21 This is kind of a new idea that we talked about in office hours a while back for leveraging the target's capabilities to configure the database. Related to meltano/hub#1407. Adds a CLI flag for initializing a new account. It interactively prompts for all the information it needs and will execute it if you want it to, otherwise it will just print the sql and you can run it yourself. Based on https://fivetran.com/docs/destinations/snowflake/setup-guide. I created a personal trial snowflake account and was able to initialize using this script then immediately run a tap using the new user/role/warehouse/database. --------- Co-authored-by: Edgar R. M <[email protected]>
This was mentioned in meltano/meltano#2814 (comment) and Office Hours.
The premise is that taps/targets are all CLIs and they already have all the credentials and logic needed to connect to the source or destination so we could extend it to do other operations.
In this case it would be nice to help users initialize needed snowflake objects so onboarding is seamless. I'm not 100% this is relevant for this target but in pipelinewise's the user needs to create a file format + role + optional stage + apply permissions appropriately. I see in
target-snowflake/target_snowflake/sinks.py
Line 284 in f791770
It would be cool to allow 2 options:
The text was updated successfully, but these errors were encountered: