Open jcmincke opened 3 years ago
There is a workaround: convert a sub-expression to sql and then turn it back to a tableExpr:
e1 = ....
e2 = ....
e3 = f(e1, e2) # sql generation fails
e1g = conn.sql(ibis_bigquery.compile(e1))
e2 = ...
e3 = f(e1g, e2) # sql generation (might) succeed(s)
The generated sql is incorrect, look at the alias on line 15. The error seems to occur when a complex query is translated to sql that contains a WITH clause.