[
https://issues.apache.org/jira/browse/SPARK-55907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-55907:
-----------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]