Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61A9419BE1 for ; Mon, 4 Apr 2016 17:52:47 +0000 (UTC) Received: (qmail 22127 invoked by uid 500); 4 Apr 2016 17:52:46 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 22058 invoked by uid 500); 4 Apr 2016 17:52:46 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 22048 invoked by uid 99); 4 Apr 2016 17:52:46 -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; Mon, 04 Apr 2016 17:52:46 +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 462131A4636 for ; Mon, 4 Apr 2016 17:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-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 UcIU0AKY7c_I for ; Mon, 4 Apr 2016 17:52:44 +0000 (UTC) Received: from mail.benocs.com (mx-01.benocs.com [91.102.13.130]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 695E35FAF4 for ; Mon, 4 Apr 2016 17:52:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.benocs.com (Postfix) with ESMTP id C2F0C6437EC; Mon, 4 Apr 2016 19:52:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at benocs.com Received: from mail.benocs.com ([127.0.0.1]) by localhost (mail.benocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CnylQ23HzN-g; Mon, 4 Apr 2016 19:52:35 +0200 (CEST) Received: from [192.168.178.131] (unknown [192.168.3.6]) by mail.benocs.com (Postfix) with ESMTPSA id EDD0B6437DC for ; Mon, 4 Apr 2016 19:52:34 +0200 (CEST) Subject: Re: Project renamed fields on readers with old schema To: user@avro.apache.org References: From: Arne Vogel Message-ID: <5702A9DD.400@benocs.com> Date: Mon, 4 Apr 2016 19:52:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 20.03.2016 00:18, Vinicius Carvalho wrote: [snip] > Is there a way to project renamed fields on readers using old schema > versions? > > Thanks > You could try making a v1 compatibility schema based on v2 but with the field name "temperature" instead of "internalTemperature". Then the ResolvingDecoder should be able to figure things out, assuming you use the binary format. Regards Arne Vogel -- BENOCS GMBH Arne Vogel Winterfeldtstr. 21 10781 Berlin Email: avogel@benocs.com www.benocs.com Board of Management: Michael Wolz, Dr.-Ing. Oliver Holschke, Dr.-Ing. Ingmar Poese Commercial Register: Amtsgericht Bonn HRB 19378