[
https://issues.apache.org/jira/browse/SPARK-58529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18119528#comment-18119528
]
Uroš Bojanić edited comment on SPARK-58529 at 9/25/26 8:03 PM:
---------------------------------------------------------------
[~yiconghuang] Please note that this ticket currently shows only Fix Version/s:
4.3.0
However, this was also backported to the following versions:
* 4.2.1
[https://github.com/apache/spark/pull/57777|https://github.com/apache/spark/pull/57777)]
* 4.1.4
[https://github.com/apache/spark/pull/57776|https://github.com/apache/spark/pull/57776)]
* 4.0.5
[https://github.com/apache/spark/pull/57772|https://github.com/apache/spark/pull/57772)]
So, I went ahead and updated the fix versions here accordingly ^^
was (Author: JIRAUSER313574):
[~yiconghuang] Please note that this ticket currently shows only Fix Version/s:
4.3.0
However, this was also backported to the following versions:
* 4.2.1 ([https://github.com/apache/spark/pull/57777)]
* 4.1.4 ([https://github.com/apache/spark/pull/57776)]
* 4.0.5 ([https://github.com/apache/spark/pull/57772)]
So, I went ahead and updated the fix versions here accordingly ^^
> Unify RESULT_ROWS_MISMATCH message and consolidate row count verification in
> worker.py
> --------------------------------------------------------------------------------------
>
> Key: SPARK-58529
> URL: https://issues.apache.org/jira/browse/SPARK-58529
> Project: Spark
> Issue Type: Improvement
> Components: PySpark
> Affects Versions: 4.3.0
> Reporter: Yicong Huang
> Assignee: Yicong Huang
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.3.0, 4.2.1, 4.0.5, 4.1.4
>
>
> worker.py raises RESULT_ROWS_MISMATCH from four places when a UDF returns a
> row count that doesn't match the input. SPARK-58161 hardcoded a message=
> override at each of them carrying a pandas-specific tail: "... Result vector
> from pandas_udf was not the required length: expected N, got M." This tail is
> incorrect on the arrow UDF path: verify_scalar_result is also called for
> arrow UDFs, yet the message says "pandas_udf". This removes all four
> hardcoded message= overrides so the generic RESULT_ROWS_MISMATCH template
> applies uniformly.
> The RESULT_ROWS_MISMATCH message changes from "The number of output rows (M)
> must match the number of input rows (N). Result vector from pandas_udf was
> not the required length: expected N, got M." to "The number of output rows
> (M) must match the number of input rows (N)."
> While here, consolidate the two row-count helpers -- verify_result_row_count
> (list length) and the iterator-based generator -- into a single judgement
> function that the generator delegates to, and drop the now-redundant
> error_class branch left over from SPARK-58161.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]