hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <>
Subject [jira] [Created] (HIVE-13257) GroupBy with column alias does not support AVG
Date Thu, 10 Mar 2016 02:40:40 GMT
Prasanth Jayachandran created HIVE-13257:

             Summary: GroupBy with column alias does not support AVG
                 Key: HIVE-13257
             Project: Hive
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Prasanth Jayachandran

For the following query, with hive.groupby.orderby.position.alias set to true

SELECT Avg(`t0`.`x_measure__0`) AS `avg_calculation_270497503505567749_ok` 
FROM   (SELECT `store_sales`.`ss_ticket_number` AS `ss_ticket_number`, 
               Sum(`store_sales`.`ss_net_paid`) AS `x_measure__0` 
        FROM   `store_sales` `store_sales` 
               JOIN `item` `item` 
                 ON ( `store_sales`.`ss_item_sk` = `item`.`i_item_sk` ) 
        GROUP  BY `store_sales`.`ss_ticket_number`) `t0` 
HAVING ( Count(1) > 0 );

it throws the following exception

FAILED: SemanticException [Error 10128]: Line 2:7 Not yet supported place for UDAF 'Avg’

This message was sent by Atlassian JIRA

View raw message