It appears when using Python's impala.dbapi connect, you can only run one command per execute. I am using Python 2.7.
I would like to create two common table expressions then join them, but I am unable to get this to work.
If I run the SQL as it would work in HUE using Impala it fails because only one command can be run per execute.
If I create the common table expressions in two separate executes in python and try to join the two CTEs in a third execute I get error unable to resolve "cte..." it appears the CTE does not stay in memory after the first execute is complete. The work around has been to create temporary tables in Impala instead of using CTEs. Eventually I will use Spark data frames and join those, but a permission issue is preventing Spark API from reading from Impala tables for the near future.