Dataframe, Datasets, Rdd.
compiler cannot check its type. Because of that DataFrame is untyped and it is not type-safe. Datasets on the other hand check whether types conform to the specification at compile time. That’s why Datasets are type safe. Now let’s see how type safety affects a spark application developers when