title: Pyodbc can't parse query from iql file
body: <p>I have a docker image with a script which reads an iql file and executes it in impala. Removing the file reference and running a simple script works fine (ie SELECT 1;), but whenever I try to execute the script from a file I get an error</p>
  <blockquote>
  <p>pyodbc.Error: ('HY000', '[HY000] [Cloudera][ImpalaODBC] (110) Error while executing a query in Impala: [HY000] : ParseException: Syntax error in line 2:\n\n^\nEncountered: EOF\nExpected: ALTER, COMMENT, COMPUTE, COPY, CREATE, DELETE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, TRUNCATE, UPDATE, UPSERT, USE, VALUES, WITH\n\nCAUSED BY: Exception: Syntax error\n (110) (SQLExecDirectW)'</p>
  </blockquote>
  <p>I have tried removing DriverManagerEncoding=UTF-16 from the cloudera.impalaodbc.ini file and various types of sql query (including changing the file extension to isql, iusql) but always  get the same error.</p>
  <p>Any ideas?</p>
  <p>Python function:</p>
  <pre><code>   def process_data_to_impala():
           conn = pyodbc.connect(DSN='some_DSN', autocommit=True)
           crsr = conn.cursor()
           with open('/path/to/sql/file.iql','r') as inserts:
               for statement in inserts:
                  crsr.execute(statement) 
                  print(crsr.fetchall())
  </code></pre>