You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2026/03/11 05:09:00 UTC
[jira] [Resolved] (SPARK-55907) Fix incorrect error positions for invalid data types in CREATE FUNCTION
[ https://issues.apache.org/jira/browse/SPARK-55907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gengliang Wang resolved SPARK-55907.
------------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
Issue resolved by pull request 54710
[https://github.com/apache/spark/pull/54710]
> Fix incorrect error positions for invalid data types in CREATE FUNCTION
> -----------------------------------------------------------------------
>
> Key: SPARK-55907
> URL: https://issues.apache.org/jira/browse/SPARK-55907
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.2.0
> Reporter: Gengliang Wang
> Assignee: Gengliang Wang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.2.0
>
>
> In CREATE FUNCTION statements, data type errors (e.g. STRUCT without <>) in parameters or return types were reported with incorrect line/position information. This happened because data types were not validated during the initial AST visit of visitCreateUserDefinedFunction—instead, parameter and return type text was captured as raw strings via source() and only parsed later in a separate context, losing the original position information.
--
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