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 93F9E200B88 for ; Thu, 22 Sep 2016 08:53:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 929E1160AD0; Thu, 22 Sep 2016 06:53:11 +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 D2719160AAD for ; Thu, 22 Sep 2016 08:53:10 +0200 (CEST) Received: (qmail 96315 invoked by uid 500); 22 Sep 2016 06:53:05 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 96298 invoked by uid 99); 22 Sep 2016 06:53:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 06:53:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0177CC0405 for ; Thu, 22 Sep 2016 06:53:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s2kJ_0qXSV5z for ; Thu, 22 Sep 2016 06:53:01 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 11E9D5FB08 for ; Thu, 22 Sep 2016 06:53:01 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id wk8so26276681pab.1 for ; Wed, 21 Sep 2016 23:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=FrUjyMkVZZNUKiyG1LAsTVAyOCQKNE84V66l0d2kCV4=; b=VW8rrINApoUFTxTZTmmFgn9uY/s+lmiHA/add/5i/JdumwIfKCST6AYD47MVWybq3E 1a+k7Jnf5ux1niECfO7/kbJfJt4BvOuw9JPNCMfdE3iloiMR5LX2W7YqLGq03+tQ8Fon vqxhNDQbjVueEnVRiccxclQez/BIqIlCPQueEmAH56q6/h9DJMgawMP49s9wXX8gvY3g SmLMuNhDoQvSPlrtzuml9lOBy+zxLKg8yKnSBVu7UwZ+2zMLvtjSgdRe9U4EdgsWphh+ PkP9kZhlAnKkg9Giy6LM5IsqRVhgtbKFmx0h8uMxufFNjJ19SpAByJpk9K1kq8FqJM1F 9vwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=FrUjyMkVZZNUKiyG1LAsTVAyOCQKNE84V66l0d2kCV4=; b=MXBc5SjmftHg4qgRXKL/Qx7J0jnlR+aChkSkt70spWi9QYyI31TZznJ7vcJmpF8FHT nSSFFGDrXXAaVblpOsSiVK+eo/0/ZoLfdZxIKPzodovjIzVQvMHSQBW9BKvVUy7sjqxN ZFa438XBR0PDUrRTfOLgu2xcrP7PCuCsmTNSozcJbhdXlkFyXKTl/Vo6LuH3YtlQH6oC 3Jp5jlybMncMc5bmsWwVUfMmXktREVszJenvtxuB9dq2WC9N7elQrDU9d2031QcSSO7i wcNesFbs1VdVASzvLJjYNiFYS0YwKVHjwW3ViQl27MUFkU9IvYH1m6X7pEqNKSGYEM/b mb6A== X-Gm-Message-State: AE9vXwNQ6j4bSheiuYZ4YPLvy0tifHkCPwHJV/b0AUYCDzEoVsXJzRQHJx5sx7QyLb2lA5BBhTdQWbczAZjxHu6i X-Received: by 10.66.235.100 with SMTP id ul4mr746884pac.50.1474527179606; Wed, 21 Sep 2016 23:52:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.72.97 with HTTP; Wed, 21 Sep 2016 23:52:59 -0700 (PDT) In-Reply-To: References: From: Tushar Gosavi Date: Thu, 22 Sep 2016 12:22:59 +0530 Message-ID: Subject: Re: PrintWriter for LogicalPlan To: dev@apex.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 22 Sep 2016 06:53:11 -0000 Hi Chinmay, take a look at following gist for example. https://gist.github.com/anonymous/8df8e05ffc16e620bbc030e1034da3c4 - Tushar. On Thu, Sep 22, 2016 at 12:05 PM, Chinmay Kolhatkar wrote: > Hi Tushar, > > Thanks for the information. Can you please provide me pointers on how to > use it? > > I can always examine the LogicalPlan structure but for a test case, I think > its an overkill, instead if I have a utility which can print LogicalPlan > (similar to LogicalPlanSerializer), then its just the matter for string > comparison which one has to do in test for verification. > > -Chinmay. > > > > On Thu, Sep 22, 2016 at 11:59 AM, Tushar Gosavi > wrote: > >> There is a LogicalPlanSerializer in apex engine, which will generate >> json equivalent of DAG, which can be printed easily. >> But for verification check if right components are added in DAG by >> examining dag structure than printing it. >> >> - Tushar. >> >> >> On Thu, Sep 22, 2016 at 11:39 AM, Chinmay Kolhatkar >> wrote: >> > Hi All, >> > >> > For testing of calcite generated DAG, I want to verify whether the >> correct >> > DAG is created with right operators and streams and whether properties >> are >> > set properly. >> > >> > Is there any PrintWriter for the LogicalPlan object printing components >> of >> > DAG? >> > >> > If not, I am planning to write one for Calcite testing. >> > I was wondering if that would be useful addition to apex-core for testing >> > purpose. >> > >> > Please share your opinion. >> > >> > Thanks, >> > Chinmay. >>