MaxGekk commented on issue #24724: User friendly dataset, dataframe generation for csv datasources without explicit StructType definitions. URL: https://github.com/apache/spark/pull/24724#issuecomment-496393525 The idea looks interesting, especially, getting schema from a case class. How about new `schema()` method for passing schema as a Product like: ```scala case class Person(name: String, age: Long) spark.read.schema[Person].csv("/tmp/csv").as[Person] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
