Skip to content

[SPARK-52905][PYTHON][FOLLOW-UP] ArrowWindowPythonExec code clean up #51648

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

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Accept non-udaf window expression in ArrowWindowPythonExec

Why are the changes needed?

proper error message

Does this PR introduce any user-facing change?

no

How was this patch tested?

ci

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

no

@github-actions github-actions bot added the CORE label Jul 24, 2025
@@ -61,7 +61,7 @@ import org.apache.spark.sql.execution.window._
* Unbounded window takes only input columns.
* (2) Bounded window evaluates the udf once per input row.
* Unbounded window evaluates the udf once per window partition.
* This is controlled by Python runner conf "pandas_window_bound_types"
* This is controlled by Python runner conf "window_bound_types"
Copy link
Member

Choose a reason for hiding this comment

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

This may be updated in migration guide.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it seems this configuration udfWindowBoundTypes is not a user-facing one:

    private val pythonRunnerConf: Map[String, String] =
      (ArrowPythonRunner.getPythonRunnerConfMap(conf)
      + (windowBoundTypeConf -> udfWindowBoundTypes.map(_.value).mkString(",")))

It was used to pass a extra value to the python side.

@xinrong-meng
Copy link
Member

LGTM thank you

@zhengruifeng zhengruifeng deleted the arrow_udf_win_followup branch July 25, 2025 00:12
@zhengruifeng
Copy link
Contributor Author

thank you all, merged to master

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