Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09A2510AEE for ; Mon, 1 Dec 2014 18:41:49 +0000 (UTC) Received: (qmail 51220 invoked by uid 500); 1 Dec 2014 18:41:48 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 51178 invoked by uid 500); 1 Dec 2014 18:41:48 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 51163 invoked by uid 500); 1 Dec 2014 18:41:48 -0000 Delivered-To: apmail-incubator-sqoop-dev@incubator.apache.org Received: (qmail 51156 invoked by uid 99); 1 Dec 2014 18:41:48 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 18:41:48 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id BFE231FB85C; Mon, 1 Dec 2014 18:41:46 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4335949564957516843==" MIME-Version: 1.0 Subject: Re: Review Request 28537: Sqoop2:Support Map Type in CSV IDF From: "Jarek Cecho" To: "Veena Basavaraj" , "Sqoop" , "Jarek Cecho" Date: Mon, 01 Dec 2014 18:41:46 -0000 Message-ID: <20141201184146.29132.58026@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Jarek Cecho" X-ReviewGroup: Sqoop X-ReviewRequest-URL: https://reviews.apache.org/r/28537/ X-Sender: "Jarek Cecho" References: <20141129215738.15978.55847@reviews.apache.org> In-Reply-To: <20141129215738.15978.55847@reviews.apache.org> Reply-To: "Jarek Cecho" X-ReviewRequest-Repository: sqoop-sqoop2 --===============4335949564957516843== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Nov. 29, 2014, 9:57 p.m., Jarek Cecho wrote: > > connector/connector-sdk/src/test/java/org/apache/sqoop/connector/idf/TestCSVIntermediateDataFormat.java, lines 21-52 > > > > > > Can we please not rearange imports as part of this patch? > > Veena Basavaraj wrote: > Let me highlight one thing. > > there needs to be a standard we follow in all files. > > > > In the CSVIntermediateDataFormat. the order is: > > com > org > java > javax > I put this in the "IDE" fomratter. > > the test file has some other random order. we cannot have this, it is super in productive, if you want this to continue, lets stop been anal about such a trivial thing. > > My 2 cents, it would be good for the project to have a standardized order when I import new things, I use a shortcut in IDE and let the formatter take care of it. > > I dont manually type in every new import, that is not my good use of time. > > Jarek Cecho wrote: > You're correct that we are missing proper guidelines on how the import should be ordered and I'm all for to define that. We should however have a discussion about that in separate JIRA, not part of a different unrelated JIRA. > > I'm wondering how is this making you a less productive? I'm not typing each import manually myself, I'm using my IDE (InteliJ) to do that for me. All I'm asking to not rearange the imports automatically. > > Veena Basavaraj wrote: > If you read my comment above carefully, I have even told you to the order I use in the IDE, based on the CSVIntermediateDataFormat class, and this thing seems to be custom order in each file. > > What is your issue with sticking to one order that is in CSVIntermediateDataFormat > > com > org > java > javax > > Really you think spending time on a RB on import prder is the best use of your time and my time? An IDE has one set of rules. When I do CLTR+SHIFT+O, I have not seen an IDE that has rules per file yet, > > Jarek Cecho wrote: > I don't have a problem with defining import order in the project. I however believe that such change should be discussed openly in standalone JIRA rather then on Review board as a part of unrelated change. > > I'm not familiar with CTLR+SHIFT+O shortcut. Doing little bit of googling it seems that it's an Eclipse specific shortcut to re-organize imports. Let me know if I'm incorrect here. If that is right, then until we will have set of rules to follow, it seems to me that we can simply not call this shortcut? If all that the shortcut does is to reorganize the imports, then I'm assuming it won't have any impact on productivity? > > The reason why we are trying not to have unrelated changes in patches (such as re-organizing imports, ...) is that doing unrelated changes makes difficult to use commands such as "git blame" and "git cherrypick" that we are using very often. > > Veena Basavaraj wrote: > not calling the shortcut means I manually type in every import. > > It adds the imports that are missing as well. > > > kafka project for instance does not really worry about the import order. > > I have spent time to create a wiki on style guide and sent the email to dev@. High time we had this. I vote for google style guide that is standard across many projects. If you have others in mind, leave a feedback there. > > If we enforce a standard and there is a import re-ordering this means that it is part of the change and doing a git blame should be self-explanatory. > > Veena Basavaraj wrote: > As far as this patch is concerned, I am ok to put this on hold until there is resolution. > > If everyone in the sqoop dev list votes for not having a standard and then assumes that we will keep a random order in every file just to avoid any more changes, I want to see this discussion in the dev@ list. Thank you for putting together the code guidelines. I'll definitely read them and follow up there. I don't se a need to hold this patch though. Can we simply drop the re-arrangement and commit the patch? - Jarek ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28537/#review63297 ----------------------------------------------------------- On Nov. 29, 2014, 11:09 p.m., Veena Basavaraj wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28537/ > ----------------------------------------------------------- > > (Updated Nov. 29, 2014, 11:09 p.m.) > > > Review request for Sqoop. > > > Bugs: SQOOP-1750 > https://issues.apache.org/jira/browse/SQOOP-1750 > > > Repository: sqoop-sqoop2 > > > Description > ------- > > see jira > > > Diffs > ----- > > connector/connector-sdk/src/main/java/org/apache/sqoop/connector/idf/CSVIntermediateDataFormat.java 4f2baf9 > connector/connector-sdk/src/test/java/org/apache/sqoop/connector/idf/TestCSVIntermediateDataFormat.java b629897 > > Diff: https://reviews.apache.org/r/28537/diff/ > > > Testing > ------- > > yes > > > Thanks, > > Veena Basavaraj > > --===============4335949564957516843==--