Join GitHub today
(Enhancement) Use a sql query as an expression #1731
Is there a way for ibis to have an expression simply be a static, pre-existing SQL query? e.g. today, the primary workflow for ibis (in our omnisci/mapd backend) is to generate sql via the compilation path, and i get that the primary use case is as a deferred expression system, e.g. the typical flow is
however, there are several cases where we find ourselves wanting a pre-existing SQL query to be the 'basis' of an expression - e.g.
ideally should generate a query with a CTE for query_str i.e the above when compiled should return something like