GitHub user alicegugu opened a pull request: https://github.com/apache/spark/pull/14218
[SPARK-16563][SQL] fix spark sql thrift server FetchResults bug ## What changes were proposed in this pull request? Add a constant iterator which point to head of result. The header will be used to reset iterator when fetch result from first row repeatedly. ## How was this patch tested? This bug was found when using Cloudera HUE connecting to spark sql thrift server, currently SQL statement result can be only fetched for once. The fix was tested manually with Cloudera HUE, With this fix, HUE can fetch spark SQL results repeatedly through thrift server. You can merge this pull request into a Git repository by running: $ git pull https://github.com/alicegugu/spark SparkSQLFetchResultsBug Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14218.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 #14218 ---- commit a93954179a49fd5c31600062e03f71831466c4ff Author: Alice <g...@garena.com> Date: 2016-07-15T06:13:52Z [SPARK-16563][SQL] fix spark sql thrift server ExecuteStatementOperation FetchResults bug ---- --- 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