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 8A9AC200B3E for ; Wed, 7 Sep 2016 19:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 89562160ACF; Wed, 7 Sep 2016 17:56:22 +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 D8297160AC1 for ; Wed, 7 Sep 2016 19:56:21 +0200 (CEST) Received: (qmail 85989 invoked by uid 500); 7 Sep 2016 17:56:21 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 85931 invoked by uid 99); 7 Sep 2016 17:56:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 17:56:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DCD222C1B7B for ; Wed, 7 Sep 2016 17:56:20 +0000 (UTC) Date: Wed, 7 Sep 2016 17:56:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-2262) SQL processors fail if column name contains characters illegal for Avro MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Sep 2016 17:56:22 -0000 [ https://issues.apache.org/jira/browse/NIFI-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471333#comment-15471333 ] ASF GitHub Bot commented on NIFI-2262: -------------------------------------- GitHub user mattyb149 opened a pull request: https://github.com/apache/nifi/pull/994 NIFI-2262: Added Avro-normalization of table/column names in SQL processors Affected processors are QueryDatabaseTable and ExecuteSQL, since they generate Avro output. GenerateTableFetch is not affected as it generates SQL, however I added the property to the AbstractDatabaseFetchProcessor class so it could be reused by future processors. You can merge this pull request into a Git repository by running: $ git pull https://github.com/mattyb149/nifi NIFI-2262 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/994.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #994 ---- commit f452d36d076200084cf0c8823979a948a070adc2 Author: Matt Burgess Date: 2016-09-07T17:53:47Z NIFI-2262: Added Avro-normalization of table/column names in SQL processors ---- > SQL processors fail if column name contains characters illegal for Avro > ----------------------------------------------------------------------- > > Key: NIFI-2262 > URL: https://issues.apache.org/jira/browse/NIFI-2262 > Project: Apache NiFi > Issue Type: Bug > Reporter: Matt Burgess > Assignee: Matt Burgess > > For SQL processors that output Avro (ExecuteSQL, QueryDatabaseTable, etc.), if the SQL result set contains columns whose names contain Avro-illegal characters (such as a period), then an error occurs: > org.apache.avro.SchemaParseException: Illegal character in: user.gender > These processors should either normalize the names for Avro automatically or have a property indicating whether names should be normalized. > A workaround for ExecuteSQL in many cases is to alias the columns in the SQL. This approach doesn't currently work in QueryDatabaseTable for incremental fetch (i.e. maximum-value columns) -- This message was sent by Atlassian JIRA (v6.3.4#6332)