From issues-return-2221-archive-asf-public=cust-asf.ponee.io@hivemall.incubator.apache.org Wed Apr 4 11:04:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 40E4318064F for ; Wed, 4 Apr 2018 11:04:11 +0200 (CEST) Received: (qmail 18155 invoked by uid 500); 4 Apr 2018 09:04:10 -0000 Mailing-List: contact issues-help@hivemall.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hivemall.incubator.apache.org Delivered-To: mailing list issues@hivemall.incubator.apache.org Received: (qmail 18146 invoked by uid 99); 4 Apr 2018 09:04:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2018 09:04:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0815E18000B for ; Wed, 4 Apr 2018 09:04:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.511 X-Spam-Level: X-Spam-Status: No, score=-1.511 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_LINKBAIT=2.5, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id iNr1h0hcLE5R for ; Wed, 4 Apr 2018 09:04:08 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 8F4C15FAD9 for ; Wed, 4 Apr 2018 09:04:07 +0000 (UTC) Received: (qmail 17894 invoked by uid 99); 4 Apr 2018 09:04:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2018 09:04:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DB441EABD8; Wed, 4 Apr 2018 09:04:00 +0000 (UTC) From: myui To: issues@hivemall.incubator.apache.org Reply-To: issues@hivemall.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-hivemall issue #135: [WIP] Merge Brickhouse functions Content-Type: text/plain Message-Id: <20180404090400.DB441EABD8@git1-us-west.apache.org> Date: Wed, 4 Apr 2018 09:04:00 +0000 (UTC) Github user myui commented on the issue: https://github.com/apache/incubator-hivemall/pull/135 ```sql create temporary function moving_avg as 'hivemall.statistics.MovingAverageUDTF'; select moving_avg(x, 3) from (select explode(array(1,2,3,4,5,6,7)) as x) series; select moving_avg(x, 3) from (select explode(array(1.0,2.0,3.0,4.0,5.0,6.0,7.0)) as x) series; ``` |avg| |:-:| |1.0| |1.5| |2.0| |3.0| |4.0| |5.0| |6.0| ---