I have an insert query which works via hue but when performed via pyodc receives the error:
[CLOUDERAODBC] (140) Unsupported Query.
The query itself is stored in an iql file and read into python for execution
INSERT INTO db_name_tbl_name
SELECT DISTINCT field_name, now()
FROM db_name.tbl_name
WHERE field_name not in (SELECT field_name from someothertable)
python:
with open('file/location.iql') as script:
statement = script.read()
print(statement)
crsr = conn.cursor()
crsr.execute(statement)