Add typed syntax for RDD
chenharryhua opened this issue · 2 comments
chenharryhua commented
Spark Dataset and DataFrame have typed and unsafeTyped syntax to convert them to TypedDataset. it would be convenient to have the typed syntax for RDDs.
Thanks
imarios commented
@chenharryhua can you provide an example please?
chenharryhua commented
@imarios, Thanks for asking. I thought we can say: val tds : TypedDataset[Int] = rdd.typed
where rdd has type RDD[Int].. I suddenly realized that in order to convert rdd to dataset, we need spark-session so I don't think it is implementable.. your idea? I will close the ticket if you're OK with that.