GitHub user lubozhan opened a pull request: https://github.com/apache/spark/pull/18347
[SPARK-20599][SS] ConsoleSink should work with (batch) ## What changes were proposed in this pull request? Currently, if we read a batch and want to display it on the console sink, it will lead a runtime exception. Changes: - In this PR, we add a match rule to check whether it is a ConsoleSinkProvider, we will display the Dataset if using console format. ## How was this patch tested? spark.read.schema().json(path).write.format("console").save You can merge this pull request into a Git repository by running: $ git pull https://github.com/lubozhan/spark dev Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18347.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 #18347 ---- commit dfd81b22061ab9bcbe5f7b511b929de5d31b636a Author: Lubo Zhang <lubo.zh...@intel.com> Date: 2017-06-15T07:01:31Z support console for write batch ---- --- 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