Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 5D61C10311 for ; Mon, 3 Feb 2014 18:14:18 +0000 (UTC) Received: (qmail 8077 invoked by uid 500); 3 Feb 2014 18:14:12 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 8000 invoked by uid 500); 3 Feb 2014 18:14:11 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 7837 invoked by uid 500); 3 Feb 2014 18:14:10 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7785 invoked by uid 99); 3 Feb 2014 18:14:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 18:14:09 +0000 Date: Mon, 3 Feb 2014 18:14:09 +0000 (UTC) From: "Carter Shanklin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-6359) beeline -f fails on scripts with tabs in them. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Carter Shanklin created HIVE-6359: ------------------------------------- Summary: beeline -f fails on scripts with tabs in them. Key: HIVE-6359 URL: https://issues.apache.org/jira/browse/HIVE-6359 Project: Hive Issue Type: Bug Reporter: Carter Shanklin Priority: Minor On a recent trunk build I used beeline -f on a script with tabs in it. Beeline rather unhelpfully attempts to perform tab expansion on the tabs and the query fails. Here's a screendump. {code} Connecting to jdbc:hive2://mymachine:10000/mydb Connected to: Apache Hive (version 0.13.0-SNAPSHOT) Driver: Hive JDBC (version 0.13.0-SNAPSHOT) Transaction isolation: TRANSACTION_REPEATABLE_READ Beeline version 0.13.0-SNAPSHOT by Apache Hive 0: jdbc:hive2://mymachine:10000/mydb> select i_brand_id as brand_id, i_brand as brand, . . . . . . . . . . . . . . . . . . . . . . .> Display all 560 possibilities? (y or n) . . . . . . . . . . . . . . . . . . . . . . .> ager_id=36 . . . . . . . . . . . . . . . . . . . . . . .> Display all 560 possibilities? (y or n) . . . . . . . . . . . . . . . . . . . . . . .> d d_moy=12 . . . . . . . . . . . . . . . . . . . . . . .> Display all 560 possibilities? (y or n) . . . . . . . . . . . . . . . . . . . . . . .> d d_year=2001 . . . . . . . . . . . . . . . . . . . . . . .> and ss_sold_date between '2001-12-01' and '2001-12-31' . . . . . . . . . . . . . . . . . . . . . . .> group by i_brand, i_brand_id . . . . . . . . . . . . . . . . . . . . . . .> order by ext_price desc, brand_id . . . . . . . . . . . . . . . . . . . . . . .> limit 100 ; Error: Error while compiling statement: FAILED: ParseException line 1:65 missing FROM at 'd_moy' near 'd' in from source (state=42000,code=40000) Closing: org.apache.hive.jdbc.HiveConnection {code} The same query works fine if I replace tabs with some spaces. -- This message was sent by Atlassian JIRA (v6.1.5#6160)