Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-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 5224318492 for ; Thu, 11 Feb 2016 15:06:19 +0000 (UTC) Received: (qmail 30891 invoked by uid 500); 11 Feb 2016 15:06:18 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 30757 invoked by uid 500); 11 Feb 2016 15:06:18 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 30722 invoked by uid 99); 11 Feb 2016 15:06:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 15:06:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2ABA62C1F58 for ; Thu, 11 Feb 2016 15:06:18 +0000 (UTC) Date: Thu, 11 Feb 2016 15:06:18 +0000 (UTC) From: "Douglas Creager (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1797) Schema parser should not ignore null character in default value for bytes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1797?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15142= 851#comment-15142851 ]=20 Douglas Creager commented on AVRO-1797: --------------------------------------- Whoops! [json_stringn_nocheck|https://jansson.readthedocs.org/en/2.7/apire= f.html#c.json_stringn_nocheck], that is =E2=80=94 that extra n is important= ! > Schema parser should not ignore null character in default value for bytes > ------------------------------------------------------------------------- > > Key: AVRO-1797 > URL: https://issues.apache.org/jira/browse/AVRO-1797 > Project: Avro > Issue Type: Bug > Components: c, java > Affects Versions: 1.7.4 > Environment: Hive, Impala > Reporter: Huaisi Xu > Priority: Critical > > In https://avro.apache.org/docs/1.7.7/spec.html#schema_complex, "Default = values for bytes and fixed fields are JSON strings, where Unicode code poin= ts 0-255 are mapped to unsigned 8-bit byte values 0-255.". The example prov= ided is: bytes || string || "\u00FF". > However, if I try to create a table schema with default bytes value for a= decimal field to be i.e. "\u0031", I will have "Illegal unquoted character= ((CTRL-CHAR, code 31)): has to be escaped using backslash to be included i= n string value.". Anything less than 32 fails. -- This message was sent by Atlassian JIRA (v6.3.4#6332)