Answer Posted / Kumar Alok Ranjha
By default, RDDs in Apache Spark do not have a schema. However, you can assign a schema to an RDD using methods like `toDF()` or `selectSchema()`. When reading data from structured sources like CSV or JSON, Spark will automatically infer the schema.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers