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 C9625200D3E for ; Thu, 16 Nov 2017 18:11:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C7FC6160BEA; Thu, 16 Nov 2017 17:11:47 +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 1A0971609EF for ; Thu, 16 Nov 2017 18:11:46 +0100 (CET) Received: (qmail 3137 invoked by uid 500); 16 Nov 2017 17:11:46 -0000 Mailing-List: contact dev-help@impala.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.apache.org Delivered-To: mailing list dev@impala.apache.org Received: (qmail 3074 invoked by uid 99); 16 Nov 2017 17:11:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2017 17:11:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 29042C04B5 for ; Thu, 16 Nov 2017 17:11:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cloudera.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Ls92jnmA1YLU for ; Thu, 16 Nov 2017 17:11:41 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 67C245FB2D for ; Thu, 16 Nov 2017 17:11:40 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id w21so30985792lfc.6 for ; Thu, 16 Nov 2017 09:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudera.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mfHyNQMYGWGqc8ioOI+S4c95DaaWKXyNgN04lmTGY+I=; b=Udpj/Noc5yFKa0Ju3AstVOykjRIAupDOs1BoJA7dmhWVqgMtJzcuNUdDpNXszGV0ST 1kg/VOAZR12xjgJKrRQV3I1NKSUZutsZExYK8qNpzqJdrAxSwCTAZn5V1Lv6oXXoig6n 7xLKiShuKgabpBW2gLhMhkNXrVu1dX7sramL06idZbbEVhBPBgsT14fqM6riVwBPXizF bfc9b3q9KY3ccvOM7rW//vt/LJjes5rsLZ+Wkv3cnYAqjB/tMVXNwecjA2zUUtielVZC ruwmpVPxa52+jUCWTks5q/f6gyfEJjbo+QLvtDL3tIB4knbLlAV97Oy7wTAg85ybg58G cEQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mfHyNQMYGWGqc8ioOI+S4c95DaaWKXyNgN04lmTGY+I=; b=Sc2ASn5ggdaSwcScMZgg8sULldlVY9HFDxnmvCXlRy8o0Z44Qp1Pxna7HYv81QcthF pZjrjnUJzfCnZpMaG/FPcu8CsGPjSlvTYLq00ws3TLS+hMO8EDnAZDGpxpNJ6DKn+6S3 FYD9NidPZI8sLNuGPkO4Gj0MpdP+t9K4QYJ8jgQxpwKdit4QqIOWQMvi30ZE3uLntiMo YSZ7TBymBiwK3dea4MVMJiW1mcjRRu5DO7wHK452Af3F2b7R/Vko16dQi75sjuSxPRjU SOp/UwY0sy6SGB2ZvBXEfRt9af8kaQHKuVeMnkhMv6aTLrNPtI0luUUesKRMZRoejVrF pEzQ== X-Gm-Message-State: AJaThX77+Co5HhmGU/ZM/OW3QRrpyYJ/OvfulT1VO2hS5jER0otNNImg xqxcNsH+fzDpfkKhFKhBiyazDf9R8ngXjNAADbsXcg== X-Google-Smtp-Source: AGs4zMbY50d5KIFLACUOgD91/abpuHU2Fcv3TGkCxiCGCOU/nTFCqyHDHAq5PS67+mJP4454sG4a/y4BBv1wQ3zV17Q= X-Received: by 10.46.77.148 with SMTP id c20mr1130780ljd.156.1510852294375; Thu, 16 Nov 2017 09:11:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.198.200 with HTTP; Thu, 16 Nov 2017 09:10:53 -0800 (PST) In-Reply-To: References: From: Jim Apple Date: Thu, 16 Nov 2017 09:10:53 -0800 Message-ID: Subject: Re: IMPALA-5078: break up expr-test.cc To: dev@impala.apache.org Content-Type: text/plain; charset="UTF-8" archived-at: Thu, 16 Nov 2017 17:11:48 -0000 You might even consider doing #4 first - it's OK to have a file that is only used by one other file, and that way would reduce the burden to anyone who needs to make a change to a utility file, so they don't have to make that change in multiple places. On Thu, Nov 16, 2017 at 7:47 AM, Jin Chul Kim wrote: > Sure. Here is a plan to do this carefully. > > 1. The first change is to move only string part to test-string-expr.cc, > which just move/copy a chunk of code to a new file. There is a redundant > code in the both files between test-expr.cc and test-string-expr.cc because > we hope minimal code change. > 2. Iterate #1 approach for the remaining parts. There are several changes. > 3. Splitting test-expr.cc is finished. > 4. We can find rooms to refactor the new files because there are > redundant/unnecessary code. Several changes are required for refactoring by > an incremental manner. > > Best regards, > Jinchul > > 2017-11-16 23:51 GMT+09:00 Jim Apple : > >> I like this idea. >> >> One thing to be careful of is to not modify the tests themselves when >> you move them. It's hard to see such changes in gerrit and it's hard >> to track them down in git history. >> >> On Thu, Nov 16, 2017 at 5:34 AM, Jin Chul Kim wrote: >> > Hi, >> > >> > https://issues.apache.org/jira/browse/IMPALA-5078 >> > >> > I'd like to get your advice if I will refactor expr-test.cc. Henry >> suggests >> > grouping tests by string instructions and move them to >> expr-string-test.cc. >> > I like his idea. You know filenames (e.g. cast-functions*, >> > timestamp-functions*, aggregate-functions*) of backend kernel code in >> exprs >> > have a same pattern, so I would suggest a pair of kernel code and unit >> > test. For example, >> > (cast-functions*, expr-cast-test.cc), >> > (timestamp-functions*, expr-timestamp-test.cc), >> > (aggregate-functions*, expr-aggregate-test.cc), >> > ... >> > >> > Do you have any suggestion or comment on this? Thanks. >> > >> > Best regards, >> > Jinchul >>