Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB5A619EC3 for ; Thu, 10 Mar 2016 02:40:41 +0000 (UTC) Received: (qmail 82307 invoked by uid 500); 10 Mar 2016 02:40:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 82184 invoked by uid 500); 10 Mar 2016 02:40:40 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 82158 invoked by uid 99); 10 Mar 2016 02:40:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 02:40:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A91A92C044E for ; Thu, 10 Mar 2016 02:40:40 +0000 (UTC) Date: Thu, 10 Mar 2016 02:40:40 +0000 (UTC) From: "Prasanth Jayachandran (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-13257) GroupBy with column alias does not support AVG MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Prasanth Jayachandran created HIVE-13257: -------------------------------------------- Summary: GroupBy with column alias does not support AVG Key: HIVE-13257 URL: https://issues.apache.org/jira/browse/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 tr= ue {code:title=3DQuery} SELECT Avg(`t0`.`x_measure__0`) AS `avg_calculation_270497503505567749_ok`= =20 FROM (SELECT `store_sales`.`ss_ticket_number` AS `ss_ticket_number`,=20 Sum(`store_sales`.`ss_net_paid`) AS `x_measure__0`=20 FROM `store_sales` `store_sales`=20 JOIN `item` `item`=20 ON ( `store_sales`.`ss_item_sk` =3D `item`.`i_item_sk` )= =20 GROUP BY `store_sales`.`ss_ticket_number`) `t0`=20 GROUP BY 1=20 HAVING ( Count(1) > 0 ); {code} it throws the following exception {code:title=3DException} FAILED: SemanticException [Error 10128]: Line 2:7 Not yet supported place f= or UDAF 'Avg=E2=80=99 {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)