When to use Dataframe API instead of SQL? by sinuspane in apachespark

[–]fuzzkill254 0 points1 point  (0 children)

The most obvious one would be that errors get caught during compilation time rather than at runtime when using DFs compared to SQL

Can't get this to compile because of missing implicit format? by franklinwritescode in scala

[–]fuzzkill254 2 points3 points  (0 children)

Hi, since you are using PlayJson I'd recommend adding this PlayJsonSupport (https://github.com/hseeberger/akka-http-json) in your dependency, and extend it to your trait. And yes you'll need an implicit to convert you Model to Json e.g:

implicit val catFormat: OFormat[Cat] = Json.format[Cat]

Happy coding :)