Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CB431880E for ; Tue, 1 Dec 2015 04:08:35 +0000 (UTC) Received: (qmail 83053 invoked by uid 500); 1 Dec 2015 04:08:35 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 82954 invoked by uid 500); 1 Dec 2015 04:08:35 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 82941 invoked by uid 99); 1 Dec 2015 04:08:34 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 04:08:34 +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 3060EC05AC for ; Tue, 1 Dec 2015 04:08:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Status: No, score=2.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jTBA0sUXQe9y for ; Tue, 1 Dec 2015 04:08:32 +0000 (UTC) Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com [209.85.160.180]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 73F8542B0F for ; Tue, 1 Dec 2015 04:08:32 +0000 (UTC) Received: by ykdr82 with SMTP id r82so210214239ykd.3 for ; Mon, 30 Nov 2015 20:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=DP+7MbROpALRiOaD8N8zYWv7FZt4jG6zZVus0UmS5Lk=; b=u7ZuhzjL/Z3b3L0PHHv8d87iZAUsFMFm988O7ZcSbt9xApRXb4NnLrI7Q6vtkYB51C 4ZEpYnf94CXMncMGOrGjhrMh20ke3+fVHIPHpix/3c0MbWKE6tqqRN80KEn6pJ3kSsAX IyloyN7jURIYqXnJa4XnZzmDnvYNVi6vv51szYzUl+phv7YJNSG1EOgdapX18mtfjD8k i3tJPu/W9ttuAJD/SxUa14BwQnAWn2KCcQ5oGfDhhjYd92OxfgCs1eD/WA606T3BTps5 pRNgw6EWYkCmjFtS3rFLHsINa6TphTKZACZWlzVeB3pP49jFlmaOFrtzGroxyTodXJ4+ AWWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=DP+7MbROpALRiOaD8N8zYWv7FZt4jG6zZVus0UmS5Lk=; b=D0HdrCOu0unKiutr89WV5JNaDtv4oUWqvqrejhpTRJna//JrSZoLG4jzXO5ngA7P4D qGOgVlK4LL91vD7IcyUSwUQb+gFApKnodNUodRJutfA77tPmg/uhi+KPfqHtLK4cy6Bj p63A82cUs3Mo6BihFCC0SFvalwfgVzq2fOj2cOq67rvDYUKSIYt1XE3S+x9hlvYHOq0s 6o/DkZxUuVi5RQ/ujFURiI2H/S7cc54Viz6lqzEt66UdKVgYy4f+3Sk3nzeT10r29t++ WalCWEnC+IHZ9sxbVGBePaqcIxppdXsrke9p1ykKALpxG+jhPXEej7E9hDuCN1xTcuYy uHJg== X-Gm-Message-State: ALoCoQnBASmegDiDJ3j8Wbeyp737gRs2Kzpn7xUaDCKfM3MylK62rWxM/JPJxOGw+HdrJLKVTF7m MIME-Version: 1.0 X-Received: by 10.13.196.193 with SMTP id g184mr56283178ywd.293.1448942911936; Mon, 30 Nov 2015 20:08:31 -0800 (PST) Received: by 10.37.221.134 with HTTP; Mon, 30 Nov 2015 20:08:31 -0800 (PST) Date: Tue, 1 Dec 2015 09:38:31 +0530 Message-ID: Subject: [APEX-3/APEX-104] Module Separator. From: Tushar Gosavi To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114d7ec8910cda0525ce4ff6 --001a114d7ec8910cda0525ce4ff6 Content-Type: text/plain; charset=UTF-8 Hi All, As part of module support, we will need to generate names for operators internal to the module before adding it to the original DAG to avoid conflict of names. For example if a developer adds a operator with name "A" and module is name "M" in the DAG. Developer of 'M' is adding a operator 'A' into the module DAG. To avoid name conflict with the operator in the main DAG we will generate name for internal operators by concatenation of module name and operator name. The 'A' within module 'M' will be added to main DAG as 'M_A'. This works for recursive modules too. (i.e module containing module). Which separator should we use for module namespace? The requirement are - Less chances of collision. (User can add operator with name 'M_A' too). - Compatible with json format. (Should not have a problem while parsing json response from rest api) - Should be able to specify property in dt-site.xml. While '_' works, In the pull request it has been pointed out that it has higher chance of collision. Few choices are 1) _ (Underscore) 2) __ (double underscore) 3) : (colon, I will check compatibility with rest API, as it is used to separate key and value in json) 4) :: (Double colon). 5) Let developer choose the separator by specifying dag property, but default is still needed. 6) Any other option? Please suggest which approach to take? Regards, -Tushar. --001a114d7ec8910cda0525ce4ff6--