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

SNOW-1886694 - Track whether snowpark is running in an interactive environment #2879

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-jkew
Copy link
Contributor

@sfc-gh-jkew sfc-gh-jkew commented Jan 17, 2025

SNOW-1886694 - Track whether snowpark is running in an interactive environment
In order to improve interactive performance we need to track it, particularly for snowpandas. We use sys "ps1" and sys.flags.interactive for most runtime environments, but for snowbook we also look for a module availability. Snowbook notebooks can also run non-interactively; but snowbook does not set sys.flags.interactive right now. So this might over-count for snowbook until the flags are set properly.

pre-review checklist:

  • I am adding a new automated test(s) to verify correctness of my new code
    • If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing
  • I am adding new logging messages
  • I am adding a new telemetry message
  • I am adding new credentials
  • I am adding a new dependency
  • If this is a new feature/behavior, I'm adding the Local Testing parity changes.
  • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines

@sfc-gh-jkew sfc-gh-jkew requested review from a team as code owners January 17, 2025 00:28
@sfc-gh-jkew sfc-gh-jkew marked this pull request as draft January 17, 2025 00:28
@sfc-gh-jkew
Copy link
Contributor Author

Should be in draft for now.

@sfc-gh-jkew sfc-gh-jkew marked this pull request as ready for review January 17, 2025 22:21
@sfc-gh-jkew sfc-gh-jkew requested a review from a team as a code owner January 17, 2025 22:21
Copy link
Contributor

@sfc-gh-mvashishtha sfc-gh-mvashishtha left a comment

Choose a reason for hiding this comment

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

LGTM; thanks!

@@ -51,6 +51,8 @@
- Added an option `keep_column_order` for keeping original column order in `DataFrame.with_column` and `DataFrame.with_columns`.
- Added support for `contains_null` parameter to ArrayType.
- Added support for `value_contains_null` parameter to MapType.
- Added `interactive` to telemetry that indicates whether the current environment is an interactive one.

Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy Jan 17, 2025

Choose a reason for hiding this comment

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

Maybe delete this empty line to stay consistent.

Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy left a comment

Choose a reason for hiding this comment

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

Looks good, just one nit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants