You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2025/06/09 10:12:00 UTC
[jira] [Resolved] (SPARK-52420) Make test_udtf_with_invalid_return_type compatible with Python only client
[ https://issues.apache.org/jira/browse/SPARK-52420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-52420.
----------------------------------
Fix Version/s: 4.1.0
4.0.1
3.5.7
Resolution: Fixed
Issue resolved by pull request 51121
[https://github.com/apache/spark/pull/51121]
> Make test_udtf_with_invalid_return_type compatible with Python only client
> --------------------------------------------------------------------------
>
> Key: SPARK-52420
> URL: https://issues.apache.org/jira/browse/SPARK-52420
> Project: Spark
> Issue Type: Test
> Components: Connect, PySpark
> Affects Versions: 4.1.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0, 4.0.1, 3.5.7
>
>
> {code}
> ======================================================================
> FAIL [0.015s]: test_udtf_with_invalid_return_type (pyspark.sql.tests.connect.test_parity_udtf.UDTFParityTests.test_udtf_with_invalid_return_type)
> ----------------------------------------------------------------------
> pyspark.errors.exceptions.connect.SparkConnectGrpcException: (org.apache.spark.sql.connect.common.InvalidPlanInput) [INVALID_SCHEMA_TYPE_NON_STRUCT] Invalid schema type. Expect a struct type, but got "INT". SQLSTATE: 42K09
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
> File "/home/runner/work/spark/spark-3.5/python/pyspark/sql/tests/connect/test_parity_udtf.py", line 57, in test_udtf_with_invalid_return_type
> with self.assertRaisesRegex(
> AssertionError: "Invalid Python user-defined table function return type." does not match "(org.apache.spark.sql.connect.common.InvalidPlanInput) [INVALID_SCHEMA_TYPE_NON_STRUCT] Invalid schema type. Expect a struct type, but got "INT". SQLSTATE: 42K09"
> ----------------------------------------------------------------------
> Ran 134 tests in 9.927s
> {code}
> https://github.com/apache/spark/actions/runs/15522509263/job/43697654408
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org