Hi, Could Encoders.STRING work?
Pozdrawiam, Jacek Laskowski ---- https://medium.com/@jaceklaskowski/ Mastering Apache Spark 2.0 http://bit.ly/mastering-apache-spark Follow me at https://twitter.com/jaceklaskowski On Thu, Aug 11, 2016 at 5:28 AM, Aseem Bansal <asmbans...@gmail.com> wrote: > Hi > > I have a Dataset<Row> > > I will change a String to String so there will be no schema changes. > > Is there a way I can run a map on it? I have seen the function at > https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/sql/Dataset.html#map(org.apache.spark.api.java.function.MapFunction,%20org.apache.spark.sql.Encoder) > > But the problem is the second argument. What should I give? The row is not > in a specific format so I cannot go and create encoder for a bean. I want > the schema to remain the same. --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org