icexelloss commented on a change in pull request #22305:
[SPARK-24561][SQL][Python] User-defined window aggregation functions with
Pandas UDF (bounded window)
URL: https://github.com/apache/spark/pull/22305#discussion_r241453704
##########
File path: python/pyspark/worker.py
##########
@@ -145,7 +145,18 @@ def wrapped(*series):
return lambda *a: (wrapped(*a), arrow_return_type)
-def wrap_window_agg_pandas_udf(f, return_type):
+def wrap_window_agg_pandas_udf(f, return_type, runner_conf, udf_index):
+ window_bound_types_str = runner_conf.get('pandas_window_bound_types')
+ window_bound_type = [t.strip() for t in
window_bound_types_str.split(',')][udf_index]
Review comment:
Sounds good!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]