[ 
https://issues.apache.org/jira/browse/SPARK-50698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allison Wang updated SPARK-50698:
---------------------------------
        Parent:     (was: SPARK-46057)
    Issue Type: Improvement  (was: Sub-task)

> Refactor CreateUserDefinedFunction command to extend from UnaryRunnableCommand
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-50698
>                 URL: https://issues.apache.org/jira/browse/SPARK-50698
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Allison Wang
>            Priority: Major
>
> Refactor CreateUserDefinedFunction command to extend from 
> UnaryRunnableCommand, similar to UnsetNamespacePropertiesCommand so that we 
> only need one logical plan for the command.
> See comment: [https://github.com/apache/spark/pull/49126/files#r1890214852]
> Another improvement: We don't hold the expr string in the command, but the 
> parsed expression ({{{}ColumnDefinition#defaultValue{}}}). Then we validate 
> the resolved expression inĀ {{{}ResolveDefaultColumns.validateDefaultValueExpr 
> ({}}}similar to how we validate column default values for CREATE TABLE. 
> ){{{}{}}}
> See comment: https://github.com/apache/spark/pull/49126#discussion_r1900525129



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to