Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BBAB9200D24 for ; Tue, 10 Oct 2017 02:42:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA2B9160BE0; Tue, 10 Oct 2017 00:42:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0979D1609CE for ; Tue, 10 Oct 2017 02:42:02 +0200 (CEST) Received: (qmail 54820 invoked by uid 500); 10 Oct 2017 00:42:02 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 54802 invoked by uid 99); 10 Oct 2017 00:42:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 00:42:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4121C1A263B for ; Tue, 10 Oct 2017 00:42:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id um0GhTPmW5Pq for ; Tue, 10 Oct 2017 00:41:59 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9C45D5F238 for ; Tue, 10 Oct 2017 00:41:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v9A0fuw3001740; Tue, 10 Oct 2017 00:41:56 GMT Message-Id: <201710100041.v9A0fuw3001740@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 7 Date: Tue, 10 Oct 2017 00:41:56 +0000 From: "Taras Bobrovytsky (Code Review)" To: anujphadke , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Michael Brown X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4848=3A_Add_WIDTH_BUCKET=28=29_function=0A?= X-Gerrit-Change-Id: I081bc916b1bef7b929ca161a9aade3b54c6b858f X-Gerrit-Change-Number: 6023 X-Gerrit-ChangeURL: X-Gerrit-Commit: 3aa28c0d0679dcbe1a508cb9acd2563c241cf8a8 In-Reply-To: References: X-Gerrit-Comment-Date: Tue, 10 Oct 2017 00:41:56 +0000 Reply-To: tbobrovytsky@cloudera.com, impala-cr@cloudera.com, aphadke@cloudera.com, marcelk@gmail.com, alex.behm@cloudera.com, reviews@impala.incubator.apache.org, mikeb@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="ooruu00pOg8="; charset=UTF-8 archived-at: Tue, 10 Oct 2017 00:42:03 -0000 --ooruu00pOg8= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Taras Bobrovytsky has posted comments on this change=2E ( http://gerrit=2Ec= loudera=2Eorg:8080/6023 ) Change subject: IMPALA-4848: Add WIDTH_BUCKET() = function =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E Pat= ch Set 7: (4 comments) http://gerrit=2Ecloudera=2Eorg:8080/#/c/6023/7/be/= src/exprs/expr-test=2Ecc File be/src/exprs/expr-test=2Ecc: http://gerrit= =2Ecloudera=2Eorg:8080/#/c/6023/7/be/src/exprs/expr-test=2Ecc@4247 PS7, Lin= e 4247: TestValue("width_bucket(6=2E3, 2, 17, 2)", TYPE_BIGINT, 1); You s= hould include a case like (10000, 1, 6, 3) http://gerrit=2Ecloudera=2Eorg= :8080/#/c/6023/7/be/src/exprs/math-functions-ir=2Ecc File be/src/exprs/math= -functions-ir=2Ecc: http://gerrit=2Ecloudera=2Eorg:8080/#/c/6023/7/be/src/= exprs/math-functions-ir=2Ecc@429 PS7, Line 429: bucket_width This should be= called bucket_number to make it more clear http://gerrit=2Ecloudera=2Eor= g:8080/#/c/6023/7/be/src/exprs/math-functions-ir=2Ecc@431 PS7, Line 431: wi= dth_size width_size is a confusing name=2E This should be called something = like "distance_from_min"=2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/6023/= 7/be/src/exprs/math-functions-ir=2Ecc@516 PS7, Line 516: int256_t x =3D C= onvertToInt256(buckets=2Evalue()) * ConvertToInt256(width_size=2Evalue()); = > Won't this require a lot of memory to create such a array? Sure, that's t= rue=2E I don't think that this function is meant to be used that way though= =2E It's difficult to imagine someone wanting to use over 1000 buckets=2E I= n that case, we could fall back to the current implementation=2E -- To = view, visit http://gerrit=2Ecloudera=2Eorg:8080/6023 To unsubscribe, visit = http://gerrit=2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF Ge= rrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I081bc916= b1bef7b929ca161a9aade3b54c6b858f Gerrit-Change-Number: 6023 Gerrit-PatchSet= : 7 Gerrit-Owner: anujphadke Gerrit-Reviewer: Alex= Behm Gerrit-Reviewer: Michael Brown Gerrit-Reviewer: Taras Bobrovytsky Gerrit-Reviewer: anujphadke Gerrit-Comment-Dat= e: Tue, 10 Oct 2017 00:41:56 +0000 Gerrit-HasComments: Yes --ooruu00pOg8=--