[ 
https://issues.apache.org/jira/browse/SPARK-16563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15782003#comment-15782003
 ] 

vishal agrawal commented on SPARK-16563:
----------------------------------------

Fix for this issue is causing Thrift server to hang while fetching large amount 
of data from Thrift server. Raised a bug for the same SPARK-18857. kindly check.

> Repeat calling Spark SQL thrift server fetchResults return empty for 
> ExecuteStatement operation
> -----------------------------------------------------------------------------------------------
>
>                 Key: SPARK-16563
>                 URL: https://issues.apache.org/jira/browse/SPARK-16563
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.2
>            Reporter: Gu Huiqin Alice
>            Assignee: Gu Huiqin Alice
>            Priority: Minor
>             Fix For: 2.0.1, 2.1.0
>
>
> Repeat calling FetchResults(... orientation=FetchOrientation.FETCH_FIRST ..) 
> of spark sql thrift service will return empty set after calling 
> ExecuteStatement of TCLIService. 
> The bug exist in *function public RowSet getNextRowSet(FetchOrientation 
> orientation, long maxRows)*
> https://github.com/apache/spark/blob/02c8072eea72425e89256347e1f373a3e76e6eba/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/operation/SQLOperation.java#L332
> The iterator for geting result can be used for only once, so repeat calling 
> FetchResults with FETCH_FIRST parameter will return empty result. 
> FetchOrientation.FETCH_FIRST



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to