[ 
https://issues.apache.org/jira/browse/HIVE-24333?focusedWorklogId=509864&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-509864
 ]

ASF GitHub Bot logged work on HIVE-24333:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Nov/20 18:18
            Start Date: 10/Nov/20 18:18
    Worklog Time Spent: 10m 
      Work Description: miklosgergely commented on a change in pull request 
#1629:
URL: https://github.com/apache/hive/pull/1629#discussion_r520772501



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/Driver.java
##########
@@ -687,13 +685,36 @@ public boolean getResults(List results) throws 
IOException {
         return false;
       }
 
-      if (ss == Utilities.StreamStatus.EOF) {
+      if (streamStatus == Utilities.StreamStatus.EOF) {
         driverContext.setResStream(context.getStream());
       }
     }
     return true;
   }
 
+  @SuppressWarnings("rawtypes")
+  private boolean getFetchingTableResults(List results) throws IOException {
+    // If result set serialization to thrift object is enabled, and if the 
destination table is indeed written using
+    // ThriftJDBCBinarySerDe, read one row from the output sequence file, 
since it is a blob of row batches.
+    if (driverContext.getFetchTask().getWork().isUsingThriftJDBCBinarySerDe()) 
{
+      maxRows = 1;
+    }
+    driverContext.getFetchTask().setMaxRows(maxRows);
+    return driverContext.getFetchTask().fetch(results);
+  }
+
+  private String getRow(ByteStream.Output bos, Utilities.StreamStatus 
streamStatus) {
+    String row;

Review comment:
       final added.




----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 509864)
    Time Spent: 2.5h  (was: 2h 20m)

> Cut long methods in Driver to smaller, more manageable pieces
> -------------------------------------------------------------
>
>                 Key: HIVE-24333
>                 URL: https://issues.apache.org/jira/browse/HIVE-24333
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive
>            Reporter: Miklos Gergely
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Some methods in Driver are too long to be easily understandable. They should 
> be cut into pieces to make them easier to understand.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to