dongjoon-hyun 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-496365550 Hi, @swapnilushinde . Thank you for making a PR, but do you the following? It's one-liner. ```scala scala> spark.version res0: String = 2.4.3 scala> spark.read.schema("id int, name string, subject string, marks int, result boolean").load("/tmp/csv").printSchema root |-- id: integer (nullable = true) |-- name: string (nullable = true) |-- subject: string (nullable = true) |-- marks: integer (nullable = true) |-- result: boolean (nullable = true) ```
---------------------------------------------------------------- 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]
