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 D5227200C2C for ; Thu, 16 Feb 2017 08:38:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D3E7A160B57; Thu, 16 Feb 2017 07:38: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 2B371160B61 for ; Thu, 16 Feb 2017 08:38:47 +0100 (CET) Received: (qmail 61006 invoked by uid 500); 16 Feb 2017 07:38:46 -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 60616 invoked by uid 99); 16 Feb 2017 07:38:45 -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; Thu, 16 Feb 2017 07:38:45 +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 54E14180A5A for ; Thu, 16 Feb 2017 07:38:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com 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 5BE1EZmAraxp for ; Thu, 16 Feb 2017 07:38:43 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4E4275FB6B for ; Thu, 16 Feb 2017 07:38:43 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id s186so8274114qkb.1 for ; Wed, 15 Feb 2017 23:38:43 -0800 (PST) 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=krQtn4TnqC1ckcgmRYYaMhOf09bGHaLntniRalfGhl8=; b=mFRGAfKOcZ0+0OPHFud2dhset5OtN9ak4iYF4OPnXpLzAd5QwbOrchg0Tre4ws9pRi g1N3foNOIItLxcr25VIHzp2Dn+sUwiZPxyMMCansstg1YmswOBaZRreEXtslFA+KEiVV /RwVKAImMf+vJ3un4c7Qc2HGckgJyaRvftuIycKQ5T4pY4p7FBZxQX0dwhwzFrLcFFtl UZWYg+mJL6DKSbq2cNk3upz61Wc1N8TzPL4RZVklwwLCBoTMy2qWe8aephggDMQMAchs Atm3THwDSpzntd6q6km+RXnu+Evbf//zhFNwpst47Mk6Tp0h8xEroqectctBpLSwCvcQ pShg== 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=krQtn4TnqC1ckcgmRYYaMhOf09bGHaLntniRalfGhl8=; b=UkNY0doBAyM4pwaJHdrab7tLBgoEaYBKc0gwiOpe9v+S2neMWxmBoTS1xlnWrC+ZPj TTNnmJJj1rQzmE2d3M1+v4XDS3PDw+UxX2VDjpangVjBG8Myz4nLlu6CLrh1AxqgU3aC py22FneFjJ/RYmXCWDaGGHDDjA/eSerdX1yObAeB34KaSrkaITSgImb2gEAt6UoCXLEO MwttrryYiOYg4r6NBqg/CxHhqcEzpAnYZyR8wcsEQvN/qpuJUzWDPhIfswblNMqO20gH KUoLU55/bXMnRh/3K9/9EPKnGClI0z0rOyIuWk1YWR96s1nv1V6J6N/1F+CO+7pbfSge l5aQ== X-Gm-Message-State: AMke39kPx7JM3EJPePI7l80E3kAD1zKbIWZ0BtTVYPIzyFkXfnLedjPzxQIAqjLVqP8eChR0MYA8JJPepViYaRHi X-Received: by 10.55.80.136 with SMTP id e130mr875114qkb.52.1487230715448; Wed, 15 Feb 2017 23:38:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.37.71 with HTTP; Wed, 15 Feb 2017 23:38:34 -0800 (PST) In-Reply-To: References: From: Chinmay Kolhatkar Date: Thu, 16 Feb 2017 13:08:34 +0530 Message-ID: Subject: Re: APEXMALHAR-2400 In PojoInnerJoin accumulation same field names are emitted as single field To: dev@apex.apache.org Content-Type: multipart/alternative; boundary=001a114a81c27e623c0548a0e267 archived-at: Thu, 16 Feb 2017 07:38:48 -0000 --001a114a81c27e623c0548a0e267 Content-Type: text/plain; charset=UTF-8 I agree with the requirement. But I think the requirement here is superceed by requirement at https://lists.apache.org/thread.html/d1e282047399558a4f04aab186c0d986114d353dcaf6d6c76a2a3a35@%3Cdev.apex.apache.org%3E Having PojoInnerJoin to emit a POJO instead of map overrides this. I suggest to do that first and if still there is a scope we look into this. -Chinmay. On Thu, Feb 16, 2017 at 12:27 AM, Shunxin Lu wrote: > Hi Hitesh, > You are absolutely right. The PojoInnerJoin accumulation we have now is > only > to test the implementation of WindowedMergeOperator. I did not considered > the case you mentioned when developing, so please make changes to fix this. > Thanks, > Shunxin > > On Wed, Feb 15, 2017 at 4:25 AM, Hitesh Kapoor > wrote: > > > Hi All, > > > > In PojoInnerJoin accumulation same field names are emitted as single > field > > even if we don't take a join on them. For example consider the following > 2 > > POJO's on 2 streams > > > > POJO1 > > { > > id: Int > > age : String > > } > > > > POJO2 > > { > > id: Int > > age : String > > name : String > > } > > > > If we wish to take a join only on field id then the resulting stream > > contains the common named field(age) only from POJO2. > > So I am confused whether the resulting stream should contain the field > > 'age' from only POJO1 (or only POJO2) or it should contain the field > 'age' > > from both the POJOs. > > > > I think it is a bug which should be fixed and the resulting stream should > > contain common named field from both the POJOs (and maybe rename it in > the > > final output). Let me know your thoughts on it. > > > > Regards, > > Hitesh > > > --001a114a81c27e623c0548a0e267--