Skip to content

[SPARK-48504][PYTHON][CONNECT] Parent Window class for Spark Connect and Spark Classic #46841

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

Closed
wants to merge 1 commit into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Parent Window class for Spark Connect and Spark Classic

Why are the changes needed?

Same as #46129

Does this PR introduce any user-facing change?

Same as #46129

How was this patch tested?

CI

Was this patch authored or co-authored using generative AI tooling?

NO

init

init

init

init

error class
from pyspark.sql.window import Window as PySparkWindow, WindowSpec as PySparkWindowSpec
from pyspark.errors import PySparkTypeError

if TYPE_CHECKING:
from pyspark.sql.connect._typing import ColumnOrName
from pyspark.sql.connect._typing import ColumnOrName, ColumnOrName_
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need ColumnOrName_?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is to make the typing consistent with classic side, which uses ColumnOrName_.

The ColumnOrName_ was introduced in a70006d
and used in multiple places. Probably we can revisit it and remove it if possible.

Copy link
Member

Choose a reason for hiding this comment

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

ah okie. That's fine.

@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the py_parent_window branch June 3, 2024 08:38
riyaverm-db pushed a commit to riyaverm-db/spark that referenced this pull request Jun 7, 2024
…and Spark Classic

### What changes were proposed in this pull request?
 Parent Window class for Spark Connect and Spark Classic

### Why are the changes needed?
Same as apache#46129

### Does this PR introduce _any_ user-facing change?
Same as apache#46129

### How was this patch tested?
CI

### Was this patch authored or co-authored using generative AI tooling?
NO

Closes apache#46841 from zhengruifeng/py_parent_window.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
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.

2 participants