Spark: How can DataFrame be Dataset[Row] if DataFrame's have a schema
问题 This article claims that a DataFrame in Spark is equivalent to a Dataset[Row] , but this blog post shows that a DataFrame has a schema. Take the example in the blog post of converting an RDD to a DataFrame : if DataFrame were the same thing as Dataset[Row] , then converting an RDD to a DataFrame should be as simple val rddToDF = rdd.map(value => Row(value)) But instead it shows that it's this val rddStringToRowRDD = rdd.map(value => Row(value)) val dfschema = StructType(Array(StructField(