Dataframe, Datasets, Rdd.
and thrown AnalysisException. In the case of Dataset we have the opportunity to get that error in compile time itself. val empDatasetResult1 = empDataset.map(employ => employ.salary) <console>:25: error: value salary is not a member of Employ val empDatasetResult1 = empDataset.map(employ =>