Given that Avro and Parquet files contain both the data and the schema for that data, then in Spark, it should be possible to read these files in as Dataset rather than DataFrame. But all the sources that I see are reading these files in as DataFrame, and I can't find anyway of reading these files as Dataset.
Does anyone know how to read these files as Datasets?