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-1720855: clean up multithreading changes after rollout #2658

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

Conversation

sfc-gh-aalam
Copy link
Contributor

  1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-1720855

  2. Fill out the following 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
  3. Please describe how your code solves the related issue.

    Clean-up code by removing param protection and remove tests that test the case when thread-safe session is disabled.

@sfc-gh-aalam sfc-gh-aalam added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Nov 20, 2024
@github-actions github-actions bot added the local testing Local Testing issues/PRs label Nov 20, 2024
@sfc-gh-aalam
Copy link
Contributor Author

sfc-gh-aalam commented Nov 20, 2024

Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

Copy link
Contributor

@sfc-gh-jrose sfc-gh-jrose left a comment

Choose a reason for hiding this comment

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

so clean

Copy link

github-actions bot commented Jan 2, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@@ -257,9 +256,6 @@
_PYTHON_SNOWPARK_LARGE_QUERY_BREAKDOWN_COMPLEXITY_LOWER_BOUND = (
"PYTHON_SNOWPARK_LARGE_QUERY_BREAKDOWN_COMPLEXITY_LOWER_BOUND"
)
_PYTHON_SNOWPARK_ENABLE_THREAD_SAFE_SESSION = (
Copy link
Contributor

@sfc-gh-aling sfc-gh-aling Jan 3, 2025

Choose a reason for hiding this comment

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

do we need to clean up this parameter in the backend?

@sfc-gh-aalam sfc-gh-aalam enabled auto-merge (squash) January 7, 2025 00:12
Copy link

github-actions bot commented Jan 7, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

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.

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

Copy link

github-actions bot commented Jan 7, 2025

Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing

@sfc-gh-aalam
Copy link
Contributor Author

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

I looked into the failed tests and the ones that are have @multithreaded_run at the outermost decorator. This decorator runs the internal tests 5 times and it is interfering with sql_count. I have moved the decorator one level below @sql_count_checker and update the values now. Tests should pass now.

@sfc-gh-aalam sfc-gh-aalam disabled auto-merge January 7, 2025 02:03
@sfc-gh-aalam
Copy link
Contributor Author

This is increasing the number of query counts and join counts, etc in many tests. Do we know why?

I looked into the failed tests and the ones that are have @multithreaded_run at the outermost decorator. This decorator runs the internal tests 5 times and it is interfering with sql_count. I have moved the decorator one level below @sql_count_checker and update the values now. Tests should pass now.

The approach above was not as clean. I made the SqlCounter thread-safe now.

@sfc-gh-aalam sfc-gh-aalam enabled auto-merge (squash) January 7, 2025 22:02
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 to me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
local testing Local Testing issues/PRs NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md snowpark-pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants