HyukjinKwon 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-496375843 There's virtually no diff: ```scala case class Person(name: String, age: Long) val df = spark.createDataFrame[A]("/tmp/csv") ``` vs ```scala case class Person(name: String, age: Long) spark.read.schema("name string, age long").csv("/tmp/csv").as[Person] ``` and it's super confusing that `createDataFrame` takes CSV. how about JSON and other formats?
---------------------------------------------------------------- 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]
