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 6187F200BD8 for ; Wed, 7 Dec 2016 23:15:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 602C9160B0C; Wed, 7 Dec 2016 22:15:15 +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 A794E160AF9 for ; Wed, 7 Dec 2016 23:15:14 +0100 (CET) Received: (qmail 65784 invoked by uid 500); 7 Dec 2016 22:15:13 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 65766 invoked by uid 99); 7 Dec 2016 22:15:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 22:15:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7C8551A7BD1 for ; Wed, 7 Dec 2016 22:15:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E3oS1JdMK3kn for ; Wed, 7 Dec 2016 22:15:10 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 69D625F342 for ; Wed, 7 Dec 2016 22:15:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id uB7MF9hC012380; Wed, 7 Dec 2016 22:15:09 GMT Message-Id: <201612072215.uB7MF9hC012380@ip-10-146-233-104.ec2.internal> Date: Wed, 7 Dec 2016 22:15:09 +0000 From: "Dan Hecht (Code Review)" To: Sailesh Mukil , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Michael Ho Reply-To: dhecht@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4594=3A_WriteSlot_and_CodegenWriteSlot_handle_escaped_NULL_slots_differently=0A?= X-Gerrit-Change-Id: I858e427ad7c2b2da8c2bb657be06b7443655781f X-Gerrit-ChangeURL: X-Gerrit-Commit: be803a3af609088e674553546357cb1e228c917c In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Wed, 07 Dec 2016 22:15:15 -0000 Dan Hecht has posted comments on this change. Change subject: IMPALA-4594: WriteSlot and CodegenWriteSlot handle escaped NULL slots differently ...................................................................... Patch Set 3: (7 comments) http://gerrit.cloudera.org:8080/#/c/5377/3//COMMIT_MSG Commit Message: PS3, Line 7: escaped NULL does this mean '\N', or can it be something else? if it means that, let's just say that (I wasn't sure what it meant at first). PS3, Line 9: receives this could use more explanation as to where these values come from and where this convention is defined (is it DelimitedTextParser?) Line 20: cases, even though the slot is a NULL slot. i don't understand the explanation given the code you're changing in CodegenWriteSlot used to mark anything <= 0 as NULL. The code change itself looks fine though, it's just hard to follow this explanation. Could you try to clarify it? PS3, Line 22: Things worked fine Was confused by this statement since you go on to say that invalid slots did not return an error. Do you mean "NULL slots worked..." here? PS3, Line 23: and NULL what does this mean, given that you just said the code to check for NULL slots doesn't work? http://gerrit.cloudera.org:8080/#/c/5377/3/be/src/exec/hdfs-scanner.cc File be/src/exec/hdfs-scanner.cc: Line 460: // Convert length to positive if it is negative. where do we explain what negative lengths mean? i think a reminder of what it means would be nice here. You can figure it out by reading the TODO but I think it would be good to say so directly. PS3, Line 461: escaped strings I think this would be clearer to say: strings with escape charaters. Or: strings that need unescaping. -- To view, visit http://gerrit.cloudera.org:8080/5377 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I858e427ad7c2b2da8c2bb657be06b7443655781f Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Sailesh Mukil Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Michael Ho Gerrit-Reviewer: Sailesh Mukil Gerrit-HasComments: Yes