Skip to content
  • zero323's avatar
    ab88b241
    [SPARK-19427][PYTHON][SQL] Support data type string as a returnType argument of UDF · ab88b241
    zero323 authored
    ## What changes were proposed in this pull request?
    
    Add support for data type string as a return type argument of `UserDefinedFunction`:
    
    ```python
    f = udf(lambda x: x, "integer")
     f.returnType
    
    ## IntegerType
    ```
    
    ## How was this patch tested?
    
    Existing unit tests, additional unit tests covering new feature.
    
    Author: zero323 <zero323@users.noreply.github.com>
    
    Closes #16769 from zero323/SPARK-19427.
    ab88b241
    [SPARK-19427][PYTHON][SQL] Support data type string as a returnType argument of UDF
    zero323 authored
    ## What changes were proposed in this pull request?
    
    Add support for data type string as a return type argument of `UserDefinedFunction`:
    
    ```python
    f = udf(lambda x: x, "integer")
     f.returnType
    
    ## IntegerType
    ```
    
    ## How was this patch tested?
    
    Existing unit tests, additional unit tests covering new feature.
    
    Author: zero323 <zero323@users.noreply.github.com>
    
    Closes #16769 from zero323/SPARK-19427.
Loading