No, the T in Plan[T] isn't fixed. This is a Map of many different kinds of plans unfortunately.

The Plan is basically an RDD, so if you have an RDD[T] and then you map it to an RDD[U] you now have a Plan[U]