Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import teradata
- import pandas as pd
- udaExec = teradata.UdaExec (appName="Hello", version="1.0",
- logConsole=False)
- session = udaExec.connect(method="odbc", system="tdprod",
- username="xxx", password="xxx");
- sqlStr = "CREATE SET TABLE "TEST123"
- (col1 INTEGER) PRIMARY INDEX (col1);"
- result = pd.read_sql(sqlStr, self.session)
- File "..pandasiosql.py", line 1436, in read_query
- columns = [col_desc[0] for col_desc in cursor.description]
- TypeError: 'NoneType' object is not iterable
Add Comment
Please, Sign In to add comment