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

depr(snowflake): deprecate from_snowpark method #9680

Merged

Conversation

deepyaman
Copy link
Contributor

Since Ibis 9.2, it should be possible to use from_connection (introduced in #9603) as a more standardized alternative to from_snowpark. from_connection also supports a SnowflakeConnection instance.

@deepyaman
Copy link
Contributor Author

@IndexSeek Do you foresee any issue with removing the from_snowpark method down the road?

@deepyaman deepyaman added the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 23, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 23, 2024
@IndexSeek
Copy link
Contributor

@IndexSeek Do you foresee any issue with removing the from_snowpark method down the road?

I don't see an issue with removing this. I am happy to see from_connection supports both snowflake.connector.SnowflakeConnection and snowflake.snowpark.Session for the Snowflake backend.

We may also want to adjust the references to from_snowpark in the Ibis - Now flying on Snowflake post to reflect this deprecation.

The release of Ibis 9.0 includes the introduction of a new method,
[`from_snowpark`](../../backends/snowflake.qmd#ibis.backends.snowflake.Backend.from_snowpark)

con = ibis.snowflake.from_snowpark(session)

Thank you for keeping me in the loop on this one!

@deepyaman
Copy link
Contributor Author

We may also want to adjust the references to from_snowpark in the Ibis - Now flying on Snowflake post to reflect this deprecation.

Makes sense; done!

@IndexSeek
Copy link
Contributor

Thank you for updating that post! I think there is only one more place where from_snowpark is being used, in case we wanted to include the adjustment here too.

con = ibis.backends.snowflake.Backend.from_snowpark(session)

On another note, I used the ibis.snowflake.from_connection method today with both a Snowflake Python connection and a Snowpark session - it worked great in both cases!

@@ -274,7 +274,7 @@ def _setup_session(self, *, session_parameters, create_object_udfs: bool):
f"Unable to create Ibis UDFs, some functionality will not work: {e}"
)

@util.experimental
@util.deprecated(as_of="10.0", instead="use from_connection instead")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

experimental, straight to deprecated 😂

@cpcloud cpcloud added snowflake The Snowflake backend ux User experience related issues tests Issues or PRs related to tests deprecation Issues or PRs related to deprecating APIs ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI labels Jul 24, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 24, 2024
@cpcloud cpcloud force-pushed the chore/snowflake/deprecate-from-snowpark branch from 775af84 to f5769cb Compare July 24, 2024 22:55
@cpcloud cpcloud added the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 24, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 24, 2024
@cpcloud cpcloud added the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 25, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Jul 25, 2024
@cpcloud
Copy link
Member

cpcloud commented Jul 25, 2024

Merging, thanks @deepyaman and @IndexSeek!

@cpcloud cpcloud changed the title chore(snowflake): deprecate from_snowpark method depr(snowflake): deprecate from_snowpark method Jul 25, 2024
@cpcloud cpcloud merged commit 7254f65 into ibis-project:main Jul 25, 2024
102 checks passed
@deepyaman deepyaman deleted the chore/snowflake/deprecate-from-snowpark branch July 25, 2024 12:54
@cpcloud cpcloud added this to the 9.3 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Issues or PRs related to deprecating APIs snowflake The Snowflake backend tests Issues or PRs related to tests ux User experience related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants