Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-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 81D7F106E1 for ; Thu, 19 Dec 2013 05:09:41 +0000 (UTC) Received: (qmail 74042 invoked by uid 500); 19 Dec 2013 05:09:40 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 73936 invoked by uid 500); 19 Dec 2013 05:09:40 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 73916 invoked by uid 99); 19 Dec 2013 05:09:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 05:09:39 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Dec 2013 05:09:36 +0000 Received: (qmail 72608 invoked by uid 99); 19 Dec 2013 05:09:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 05:09:10 +0000 Date: Thu, 19 Dec 2013 05:09:10 +0000 (UTC) From: "Jihoon Son (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (TAJO-382) Implement encode function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAJO-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852615#comment-13852615 ] Jihoon Son edited comment on TAJO-382 at 12/19/13 5:08 AM: ----------------------------------------------------------- Sorry for confusing you. The following is an example code that violates our coding convention. {code} public class HexStringConverter { ... } {code} In our coding convention, the left brace is placed after the class name as follows. {code} public class HexStringConverter { ... } {code} Although there are some violating codes including the above example, this is a trivial problem. So, if you attach another patch after improving the exception handling, I'll change the patch to follow the coding convention. Thanks! was (Author: jihoonson): Sorry for confusing you. The following is an example code that violates our coding convention. {code} public class HexStringConverter { ... } {code} In our coding convention, the left brace is placed after the class name as follows. {code} public class HexStringConverter { ... } {code} This is a trivial problem. So, if you attach another patch after improving the exception handling, I'll change the patch to follow the coding convention. Thanks! > Implement encode function > ------------------------- > > Key: TAJO-382 > URL: https://issues.apache.org/jira/browse/TAJO-382 > Project: Tajo > Issue Type: New Feature > Reporter: Seungun Choe > Assignee: Seungun Choe > Priority: Minor > Attachments: TAJO-382.patch, TAJO-382_2.patch > > > Function : encode(data bytea, format text) > Description : Encode binary data into a textual representation. Supported formats are: base64, hex, escape. escape converts zero bytes and high-bit-set bytes to octal sequences (\nnn) and doubles backslashes. > Example : encode(E'123\\000\\001', 'base64') --> MTIzAAE= -- This message was sent by Atlassian JIRA (v6.1.4#6159)