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

wuyi updated SPARK-26730:
-------------------------
    Description: 
For types like Product, we've already add AssertNotNull when we construct 
serializer(pls see the code below), so we could strip redundant AssertNotNull 
for those types. Please see the code with the related PR for details.

 

```

val fieldValue = Invoke(
 AssertNotNull(inputObject, walkedTypePath), fieldName, dataTypeFor(fieldType),
 returnNullable = !fieldType.typeSymbol.asClass.isPrimitive)

```

  was:For types like Product, we've already add AssertNotNull when we construct 
serializer, so we could strip redundant AssertNotNull for those types. Please 
see the code with the related PR for details.


> Strip redundant AssertNotNull expression for ExpressionEncoder's serializer
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-26730
>                 URL: https://issues.apache.org/jira/browse/SPARK-26730
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: wuyi
>            Priority: Major
>
> For types like Product, we've already add AssertNotNull when we construct 
> serializer(pls see the code below), so we could strip redundant AssertNotNull 
> for those types. Please see the code with the related PR for details.
>  
> ```
> val fieldValue = Invoke(
>  AssertNotNull(inputObject, walkedTypePath), fieldName, 
> dataTypeFor(fieldType),
>  returnNullable = !fieldType.typeSymbol.asClass.isPrimitive)
> ```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to