scarlin-cloudera commented on code in PR #3761:
URL: https://github.com/apache/hive/pull/3761#discussion_r1028622471


##########
ql/src/test/results/clientpositive/perf/tpcds30tb/tez/cbo_query1.q.out:
##########
@@ -19,8 +19,8 @@ HiveSortLimit(sort0=[$0], dir0=[ASC], fetch=[100])
           HiveProject(s_store_sk=[$0])
             HiveFilter(condition=[=($24, _UTF-16LE'NM')])
               HiveTableScan(table=[[default, store]], table:alias=[store])
-      HiveProject(_o__c0=[*(CAST(/($1, $2)):DECIMAL(21, 6), 1.2:DECIMAL(2, 
1))], ctr_store_sk=[$0])
-        HiveFilter(condition=[IS NOT NULL(CAST(/($1, $2)):DECIMAL(21, 6))])
+      HiveProject(ctr_store_sk=[$0], CAST=[CAST(*(CAST(/($1, $2)):DECIMAL(21, 
6), 1.2:DECIMAL(2, 1))):DECIMAL(24, 7)])
+        HiveFilter(condition=[IS NOT NULL(CAST(*(CAST(/($1, $2)):DECIMAL(21, 
6), 1.2:DECIMAL(2, 1))):DECIMAL(24, 7))])

Review Comment:
   Good catch!
   
   Looks like I missed this change, I thought I had only trivial changes.
   
   After looking at this, there was indeed a change of behavior in that it was 
looking at multiple aggregates in the RelNode stack for "group by" statements 
when it should only look at the first aggregate.  I made the code change and 
this regression went away.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to