erikerlandson commented on issue #25024: [SPARK-27296][SQL] User Defined 
Aggregators that do not ser/de on each input row
URL: https://github.com/apache/spark/pull/25024#issuecomment-544004757
 
 
   @rdblue if what you mean is "get an encoder for a case class" that is 
actually pretty easy. I did a more complicated thing with `CountSerDe` because 
I needed to do the weird behavior of counting ser/de operations, which is 
normally transparent.
   
   ```scala
   // this should work for normal apps
   val encoder = Encoders.product[MyCaseClass]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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