hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1656238 - /hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
Date Sat, 31 Jan 2015 19:05:56 GMT
Author: brock
Date: Sat Jan 31 19:05:56 2015
New Revision: 1656238

URL: http://svn.apache.org/r1656238
Log:
HIVE-9526 - ClassCastException thrown by HiveStatement (Ashish Singh via Brock)

Modified:
    hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java

Modified: hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java
URL: http://svn.apache.org/viewvc/hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java?rev=1656238&r1=1656237&r2=1656238&view=diff
==============================================================================
--- hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java (original)
+++ hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java Sat Jan 31 19:05:56 2015
@@ -838,7 +838,7 @@ public class HiveStatement implements ja
     RowSet rowSet = RowSetFactory.create(tFetchResultsResp.getResults(),
         connection.getProtocol());
     for (Object[] row : rowSet) {
-      logs.add((String)row[0]);
+      logs.add(String.valueOf(row[0]));
     }
     return logs;
   }



Mime
View raw message