GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/18373
[SPARK-20431][FOLLOWUP][SS] Specify a schema by using a DDL-formatted string in DataStreamReader ## What changes were proposed in this pull request? This pr supported a DDL-formatted string in `DataStreamReader.schema`. This fix could make users easily define a schema without importing the type classes. For example, ```scala scala> spark.readStream.schema("col0 INT, col1 DOUBLE").load("/tmp/abc").printSchema() root |-- col0: integer (nullable = true) |-- col1: double (nullable = true) ``` ## How was this patch tested? Added tests in `DataStreamReaderWriterSuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark SPARK-20431 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18373.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18373 ---- commit 8df0cd2e1ac79d423510a7d66839791cd3335a6d Author: hyukjinkwon <gurwls...@gmail.com> Date: 2017-06-21T02:46:37Z Specify a schema by using a DDL-formatted string in DataStreamReader ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org