My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 384: pyodbc inserts extra EOF
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by luca.cer...@gmail.com, Oct 3, 2014
What steps will reproduce the problem?
1. in python console
import pyodbc
mc = pyodbc("DSN=Hive", autocommit = True)
x = mc.execute("SHOW TABLES ;")

fails with the following error:
Error: ('HY000', "[HY000] [Cloudera][HiveODBC] (35) Error from Hive: error code: '40000' error message: 'Error while compiling statement: FAILED: ParseException line 1:8 cannot recognize input near '0' '<EOF>' '<EOF>''. (35) (SQLExecDirectW)")

What is the expected output? What do you see instead?
I expect to be able to fetch the result of the query.

What version of the product are you using? On what operating system?
I am using Python 3.4, iodbc on an Ubuntu 14.04 64 bit.

Please provide any additional information below.
The same commands that cause the problems in Python 3.4 work just fine in Python 2.7.6




Powered by Google Project Hosting