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-1347394: Remove BaseQueryCompiler + error in QC default to pandas #1454

Merged
merged 10 commits into from
May 1, 2024

Conversation

sfc-gh-joshi
Copy link
Contributor

@sfc-gh-joshi sfc-gh-joshi commented Apr 29, 2024

Please answer these questions before submitting your pull requests. Thanks!

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

    Fixes SNOW-1347394

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

This PR removes our vendored copy of the BaseQueryCompiler class, inheriting the class from upstream Modin instead. Similarly, it removes all the operator registration classes defined in snowflake.snowpark.modin.core.dataframe.algebra.default2pandas, with one exception. Upstream Modin does not properly render the names of property objects (modin-project/modin#7233), so we should override DataFrameDefault.register to fix this until this issue is fixed upstream.

This PR incidentally removes Series.dt.week + Series.dt.weekofyear, which were already removed in pandas 2.0.

@sfc-gh-joshi sfc-gh-joshi added DO-NOT-MERGE NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md NO-PANDAS-CHANGELOG-UPDATES NO-PANDAS-CHANGEDOC-UPDATES This PR does not update Snowpark pandas docs and removed NO-PANDAS-CHANGEDOC-UPDATES This PR does not update Snowpark pandas docs labels Apr 29, 2024
@sfc-gh-joshi sfc-gh-joshi force-pushed the joshi-SNOW-1347394-qc-default branch from 7cd720f to bfd299f Compare April 30, 2024 22:18
@sfc-gh-joshi sfc-gh-joshi changed the title [DRAFT] SNOW-1347394: Remove BaseQueryCompiler + error in QC default to pandas SNOW-1347394: Remove BaseQueryCompiler + error in QC default to pandas Apr 30, 2024
@sfc-gh-joshi sfc-gh-joshi marked this pull request as ready for review April 30, 2024 22:31
@sfc-gh-joshi sfc-gh-joshi requested a review from a team as a code owner April 30, 2024 22:31
Copy link
Contributor

@sfc-gh-nkrishna sfc-gh-nkrishna left a comment

Choose a reason for hiding this comment

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

Thanks @sfc-gh-joshi!

Copy link
Contributor

@sfc-gh-vbudati sfc-gh-vbudati left a comment

Choose a reason for hiding this comment

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

Thanks Jonathan!

if kwargs:
args_str += ", ".join(f"{key}={value}" for key, value in kwargs.items())
ErrorMessage.not_implemented(
f"Snowpark pandas doesn't yet support {object_type}.{fn_name}({args_str}"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: ...doesn't yet support the method {object_type}.{fn_name}

@sfc-gh-joshi
Copy link
Contributor Author

sfc-gh-joshi commented May 1, 2024 via email

@sfc-gh-joshi sfc-gh-joshi force-pushed the joshi-SNOW-1347394-qc-default branch from 93f2366 to 2f457ca Compare May 1, 2024 19:23
@sfc-gh-joshi sfc-gh-joshi merged commit f0205f3 into main May 1, 2024
24 checks passed
@sfc-gh-joshi sfc-gh-joshi deleted the joshi-SNOW-1347394-qc-default branch May 1, 2024 21:05
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants