typelevel/frameless

Add typed syntax for RDD

chenharryhua opened this issue · 2 comments

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

@chenharryhua can you provide an example please?

@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.