hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1532472 - /hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java
Date Tue, 15 Oct 2013 18:24:45 GMT
Author: brock
Date: Tue Oct 15 18:24:44 2013
New Revision: 1532472

URL: http://svn.apache.org/r1532472
Log:
HIVE-5492 - Explain query fails with NPE if a client doesn't call getResultSetSchema() (Xuefu
Zhang via Brock Noland)

Modified:
    hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java

Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java?rev=1532472&r1=1532471&r2=1532472&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java Tue
Oct 15 18:24:44 2013
@@ -124,6 +124,7 @@ public class SQLOperation extends Execut
       // TODO explain should use a FetchTask for reading
       for (Task<? extends Serializable> task: driver.getPlan().getRootTasks()) {
         if (task.getClass() == ExplainTask.class) {
+          resultSchema = new TableSchema(mResultSchema);
           setHasResultSet(true);
           break;
         }



Mime
View raw message