Yaniv Dary has uploaded a new change for review.

Change subject: etl: fixed generated code issue
......................................................................

etl: fixed generated code issue

Change-Id: I3132e09d0aaccc0d9899a5408793047b2eaf74b3
Bug-Url: https://bugzilla.redhat.com/1076902
Signed-off-by: Yaniv Dary <yd...@redhat.com>
---
M 
etl_export/src/ovirt_engine_dwh/aggregationtohourly_3_4/AggregationToHourly.java
1 file changed, 16 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/15/26215/1

diff --git 
a/etl_export/src/ovirt_engine_dwh/aggregationtohourly_3_4/AggregationToHourly.java
 
b/etl_export/src/ovirt_engine_dwh/aggregationtohourly_3_4/AggregationToHourly.java
index d3106ce..bb75d61 100644
--- 
a/etl_export/src/ovirt_engine_dwh/aggregationtohourly_3_4/AggregationToHourly.java
+++ 
b/etl_export/src/ovirt_engine_dwh/aggregationtohourly_3_4/AggregationToHourly.java
@@ -5113,6 +5113,8 @@
                                        BigDecimal ksm_shared_memory_mb_sum;
                                        int ksm_shared_memory_mb_count = 0;
 
+                                       Long max_ksm_shared_memory_mb_max;
+
                                        @Override
                                        public int hashCode() {
                                                if (this.hashCodeDirty) {
@@ -5167,11 +5169,6 @@
                                        }
 
                                } // G_OutBegin_AggR_100
-
-                               System.err
-                                               .println(
-
-                                               "Warning:the operation 'max' 
for the output column 'max_ksm_shared_memory_mb' can't be processed because of 
incompatible input and/or output types");
 
                                AggOperationStruct_tAggregateRow_2 
operation_result_tAggregateRow_2 = null;
                                AggOperationStruct_tAggregateRow_2 
operation_finder_tAggregateRow_2 = new AggOperationStruct_tAggregateRow_2();
@@ -5920,6 +5917,17 @@
 
                                                                } // 
G_OutMain_AggR_546
 
+                                                               if 
(host_aggregation.ksm_shared_memory_mb != null) { // G_OutMain_AggR_546
+
+                                                                       if 
(operation_result_tAggregateRow_2.max_ksm_shared_memory_mb_max == null
+                                                                               
        || host_aggregation.ksm_shared_memory_mb > 
operation_result_tAggregateRow_2.max_ksm_shared_memory_mb_max
+
+                                                                       ) {
+                                                                               
operation_result_tAggregateRow_2.max_ksm_shared_memory_mb_max = 
host_aggregation.ksm_shared_memory_mb;
+                                                                       }
+
+                                                               } // 
G_OutMain_AggR_546
+
                                                                
tos_count_tAggregateRow_2_AGGOUT++;
 
                                                                /**
@@ -6107,6 +6115,7 @@
                                                                
.parseTo_Long(count);
 
                                        }
+                                       row7.max_ksm_shared_memory_mb = 
aggregated_row_tAggregateRow_2.max_ksm_shared_memory_mb_max;
                                        if 
(aggregated_row_tAggregateRow_2.cpu_usage_percent_count > 0) {
 
                                                double 
row7_cpu_usage_percent_temp = (double) 
aggregated_row_tAggregateRow_2.cpu_usage_percent_sum
@@ -25982,6 +25991,6 @@
        ResumeUtil resumeUtil = null;
 }
 
/************************************************************************************************
- * 747986 characters generated by Talend Open Studio for Data Integration on 
the
- * March 17, 2014 2:22:36 PM IST
+ * 748430 characters generated by Talend Open Studio for Data Integration on 
the
+ * March 30, 2014 6:59:56 PM ICT
  
************************************************************************************************/


-- 
To view, visit http://gerrit.ovirt.org/26215
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3132e09d0aaccc0d9899a5408793047b2eaf74b3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-dwh
Gerrit-Branch: master
Gerrit-Owner: Yaniv Dary <yd...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to