You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Max Mitchell (JIRA)" <ji...@apache.org> on 2018/11/01 03:07:00 UTC

[jira] [Created] (IMPALA-7797) impala-shell unable to run source commands within query file

Max Mitchell created IMPALA-7797:
------------------------------------

             Summary: impala-shell unable to run source commands within query file
                 Key: IMPALA-7797
                 URL: https://issues.apache.org/jira/browse/IMPALA-7797
             Project: IMPALA
          Issue Type: Bug
    Affects Versions: Impala 2.8.0
            Reporter: Max Mitchell


The impala shell isn't running `source` commands when they're contained within a query file.

Here's an example SQL file. 
{code:java}
set var:x=0;

source other_queries.sql;{code}
 And the result is something like this.
{code:java}
Starting Impala Shell using Kerberos authentication
Using service name 'impala'
Connected to ...
Server version: impalad version 2.8.0-cdh5.11.0 RELEASE (build e09660de6b503a15f07e84b99b63e8e745854c34)
Variable X set to 0
Query: source other_queries.sql
Query submitted at: ... (Coordinator: ...)
ERROR: AnalysisException: Syntax error in line ...:
source other_queries.sql
^
Encountered: IDENTIFIER
Expected: ALTER, COMPUTE, CREATE, DELET...{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)