From issues-return-84006-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Tue Sep 3 07:37:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EE362180637 for ; Tue, 3 Sep 2019 09:37:01 +0200 (CEST) Received: (qmail 8121 invoked by uid 500); 3 Sep 2019 08:48:12 -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 8111 invoked by uid 99); 3 Sep 2019 08:48:12 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2019 08:48:12 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B27F3E2FA8 for ; Tue, 3 Sep 2019 07:37:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 245A8780459 for ; Tue, 3 Sep 2019 07:37:00 +0000 (UTC) Date: Tue, 3 Sep 2019 07:37:00 +0000 (UTC) From: =?utf-8?Q?Bart=C5=82omiej_Tartanus_=28Jira=29?= To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (NIFI-6611) Unnecessary column name escaping in create view MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Bart=C5=82omiej Tartanus created NIFI-6611: ----------------------------------------- Summary: Unnecessary column name escaping in create view=20 Key: NIFI-6611 URL: https://issues.apache.org/jira/browse/NIFI-6611 Project: Apache NiFi Issue Type: Bug Components: Core Framework Affects Versions: 1.9.2 Reporter: Bart=C5=82omiej Tartanus Attachments: image-2019-09-03-09-28-56-842.png Creating view with columns inside struct works, but fails when queried. Steps to reproduce in NiFi with Hive: 1. Create flow using=C2=A0GenerateFlowFile and PutHive3QL processor !image-2019-09-03-09-28-56-842.png! 2. Set flow file content in GenerateFlowFile to this query, which creates s= imple table with structure (this is the key here - the column name is reser= ved word, but doesn't have to) {code:java} CREATE TABLE test_table AS SELECT named_struct('all', 123) as s; CREATE VIEW test_view AS SELECT s.`all` FROM test_table; {code} 3. Run flow, wait for table and view to create; 4. Run query: {code:java} SELECT * FROM test_view; {code} 5. Error: {code:java} Error while compiling statement: FAILED: SemanticException line 21:51 canno= t recognize input near 'all' '' 'FROM' in expression specification in defin= ition of VIEW test_view [ SELECT `test_table`.`s`.``all`` FROM `test_table`= ] used as test_view at Line 2:14 {code} As you can see in error message, the column name is escaped twice.=C2=A0 Creating this view using Hue works fine. Although I'm not sure if this is N= iFi issue - might be Hive driver's issue.=C2=A0 -- This message was sent by Atlassian Jira (v8.3.2#803003)