Ngone51 opened a new pull request #23651: [SPARK-26730][SQL] Strip redundant 
AssertNotNull for ExpressionEncoder's serializer
URL: https://github.com/apache/spark/pull/23651
 
 
   ## What changes were proposed in this pull request?
   
   For types like Product, we've already add AssertNotNull when we construct 
serializer(see code below), so we could strip redundant AssertNotNull for those 
types.
   
   ```
   val fieldValue = Invoke(
       AssertNotNull(inputObject, walkedTypePath), fieldName, 
dataTypeFor(fieldType),
       returnNullable = !fieldType.typeSymbol.asClass.isPrimitive)
   ```
   ## How was this patch tested?
   
   Existed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to