-
Notifications
You must be signed in to change notification settings - Fork 179
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
Acknowledge send_anonymous_usage_stats
setting for python models
#933
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-snowflake contributing guide. |
send_anonymous_usage_stats
setting for python models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I'm not even sure what we're sending? A little string with the type of model?
snowpark_telemetry_snippet = f""" | ||
if self.config.args.SEND_ANONYMOUS_USAGE_STATS: | ||
snowpark_telemetry_string = "dbtLabs_dbtPython" | ||
snowpark_telemetry_snippet = f""" | ||
import sys | ||
sys._xoptions['snowflake_partner_attribution'].append("{snowpark_telemetry_string}")""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why's the indenting all weird?
) * add draft integration test demonstrating the issue * changie * condition on the send_anonymous_usage_stats setting when building a python model (cherry picked from commit ad7ea4d)
…g for python models (#948) * Acknowledge `send_anonymous_usage_stats` setting for python models (#933) * add draft integration test demonstrating the issue * changie * condition on the send_anonymous_usage_stats setting when building a python model (cherry picked from commit ad7ea4d) * update how to turn send_anonymous_usage_stats on and off for 1.7 in the test fixtures --------- Co-authored-by: Mike Alfare <[email protected]> Co-authored-by: Mike Alfare <[email protected]>
resolves #830
Problem
We're not acknowledging the
send_anonymous_usage_stats
setting for python models.Solution
SnowflakeAdapter.submit_python_job
to acknowledge this settingChecklist