Hello Spark Gurus,

I am running into an issue with Encoding and wanted your help.

I have a case class with a JObject in it. Ex:
*case class SomeClass(a: String, b: JObject)*

I also have an encoder for this case class:
*val encoder = Encoders.product[**SomeClass**]*

Now I am creating a DataFrame with the tuple (a, b) from my transformations
and converting into a DataSet:
*df.as <http://df.as>[SomeClass](encoder)*

When I do this, I get the following error:
*java.lang.UnsupportedOperationException: No Encoder found for
org.json4s.JsonAST.JValue*

Appreciate any help regarding this issue.

Many thanks in advance!
Warm regards
Arko

Reply via email to