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 A32C6200B57 for ; Sat, 23 Jul 2016 08:05:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1A52160A8E; Sat, 23 Jul 2016 06:05:13 +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 E99D0160A6D for ; Sat, 23 Jul 2016 08:05:12 +0200 (CEST) Received: (qmail 62756 invoked by uid 500); 23 Jul 2016 06:05:12 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 62745 invoked by uid 99); 23 Jul 2016 06:05:11 -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; Sat, 23 Jul 2016 06:05:11 +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 5C3781A722B for ; Sat, 23 Jul 2016 06:05:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.462 X-Spam-Level: **** X-Spam-Status: No, score=4.462 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_SBL=4, URIBL_SBL_A=0.1] autolearn=disabled Received: from mx2-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 ekcKnHzRP3XC for ; Sat, 23 Jul 2016 06:05:08 +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 mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 630D75FACB for ; Sat, 23 Jul 2016 06:05:08 +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 u6N653uG013631; Sat, 23 Jul 2016 06:05:03 GMT Message-Id: <201607230605.u6N653uG013631@ip-10-146-233-104.ec2.internal> Date: Sat, 23 Jul 2016 06:05:03 +0000 From: "Yuanhao Luo (Code Review)" To: Yuanhao Luo , Jim Apple , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Huaisi Xu , Marcel Kornacker , Henry Robinson , Dan Hecht , Tim Armstrong Reply-To: luoyuanhao@software.ict.ac.cn X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-2878=3A_Fix_Base64Decode_error_and_remove_duplicate_codes=2E=0A?= X-Gerrit-Change-Id: Ica8f61fce7af16aa859f71d0763303e8d832ddcd X-Gerrit-ChangeURL: X-Gerrit-Commit: 7f74e82f90f63a9f9a8ccef8d7a31f37ddcaa05d 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: Sat, 23 Jul 2016 06:05:13 -0000 Hello Jim Apple, I'd like you to reexamine a change. Please visit http://gerrit.cloudera.org:8080/3311 to look at the new patch set (#7). Change subject: IMPALA-2878: Fix Base64Decode error and remove duplicate codes. ...................................................................... IMPALA-2878: Fix Base64Decode error and remove duplicate codes. Original impala::Base64Decode() method wouldn't return original string if there were trailing '\0'. For example, string "a\0" would be encoded into "YQA=", while calling original Base64Decode() method, the return value is "a", which losts the trailing '\0' of original string "a\0". Besides, this commit remove duplicate codes of function impala::Base64En/Decode() and impala::StringFunctions::Base64En/Decode(). Change-Id: Ica8f61fce7af16aa859f71d0763303e8d832ddcd --- M be/src/exec/hdfs-table-sink.cc M be/src/exprs/string-functions-ir.cc M be/src/service/impala-http-handler.cc M be/src/util/CMakeLists.txt R be/src/util/coding-util-test.cc R be/src/util/coding-util.cc R be/src/util/coding-util.h M be/src/util/runtime-profile.cc M be/src/util/thread.cc M be/src/util/webserver.cc 10 files changed, 116 insertions(+), 84 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/11/3311/7 -- To view, visit http://gerrit.cloudera.org:8080/3311 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: Ica8f61fce7af16aa859f71d0763303e8d832ddcd Gerrit-PatchSet: 7 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Yuanhao Luo Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Huaisi Xu Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Tim Armstrong Gerrit-Reviewer: Yuanhao Luo