chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r768136 - in /hadoop/chukwa: branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java
Date Fri, 24 Apr 2009 03:02:10 GMT
Author: eyang
Date: Fri Apr 24 03:02:09 2009
New Revision: 768136

URL: http://svn.apache.org/viewvc?rev=768136&view=rev
Log:
CHUKWA-186. Update Macro to use timestamp instead of avg(timestamp).

Modified:
    hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java

Modified: hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java?rev=768136&r1=768135&r2=768136&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
(original)
+++ hadoop/chukwa/branches/chukwa-0.1/src/java/org/apache/hadoop/chukwa/database/Macro.java
Fri Apr 24 03:02:09 2009
@@ -115,12 +115,7 @@
                         }
                         first=false;
                     } else if(type==java.sql.Types.TIMESTAMP) {
-                        // Skip the column
-                        if(macro.indexOf("sum(")==0) {
-                            meta=meta+"sum("+name+")";	            			
-                        } else {
-                            meta=meta+"avg("+name+")";
-                        }
+                        meta=meta+name;	            			
                         first=false;
                     } else {
                         if(macro.indexOf("sum(")==0) {

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java?rev=768136&r1=768135&r2=768136&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java (original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/database/Macro.java Fri Apr 24 03:02:09
2009
@@ -115,12 +115,7 @@
                         }
                         first=false;
                     } else if(type==java.sql.Types.TIMESTAMP) {
-                        // Skip the column
-                        if(macro.indexOf("sum(")==0) {
-                            meta=meta+"sum("+name+")";	            			
-                        } else {
-                            meta=meta+"avg("+name+")";
-                        }
+                        meta=meta+name;	            			
                         first=false;
                     } else {
                         if(macro.indexOf("sum(")==0) {



Mime
View raw message