You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2015/12/01 19:20:07 UTC
[17/50] ambari git commit: AMBARI-13938. Select on large BIGINT in
Ambari Hive View returns incorrect value. (Nitiraj Rathore via Jaimin)
AMBARI-13938. Select on large BIGINT in Ambari Hive View returns incorrect value. (Nitiraj Rathore via Jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c1b52050
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c1b52050
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c1b52050
Branch: refs/heads/branch-dev-patch-upgrade
Commit: c1b520502a0fd3b946643be97b0e3a6a5e0701b2
Parents: b3cdc4e
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Sun Nov 29 21:44:20 2015 -0800
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Sun Nov 29 21:46:02 2015 -0800
----------------------------------------------------------------------
.../resources/jobs/ResultsPaginationController.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c1b52050/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/ResultsPaginationController.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/ResultsPaginationController.java b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/ResultsPaginationController.java
index 735e63d..84dec4d 100644
--- a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/ResultsPaginationController.java
+++ b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/ResultsPaginationController.java
@@ -168,7 +168,7 @@ public class ResultsPaginationController {
private static class ResultsResponse {
private ArrayList<ColumnDescription> schema;
- private ArrayList<Object[]> rows;
+ private ArrayList<String[]> rows;
private int readCount;
private boolean hasNext;
private long offset;
@@ -183,10 +183,20 @@ public class ResultsPaginationController {
}
public void setRows(ArrayList<Object[]> rows) {
- this.rows = rows;
+ if( null == rows ){
+ this.rows = null;
+ }
+ this.rows = new ArrayList<String[]>(rows.size());
+ for(Object[] row : rows ){
+ String[] strs = new String[row.length];
+ for( int colNum = 0 ; colNum < row.length ; colNum++ ){
+ strs[colNum] = String.valueOf(row[colNum]);
+ }
+ this.rows.add(strs);
+ }
}
- public ArrayList<Object[]> getRows() {
+ public ArrayList<String[]> getRows() {
return rows;
}