You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
query_str = 'select a, b, count(*) as ct from tbl where ... group by a,b having ...'
expr_query = expr_from_query_string(query) #(A 'pre-compiled' expression
expr2 = expr_query[(ct > 50) & (a == 'foo)]
ideally should generate a query with a CTE for query_str i.e the above when compiled should return something like
WITH t0 as (
select a, b, count(*) as ct from tbl where ... group by a,b having ...'
) select * from t0 where t0.a == 'foo' and t0.ct > 50
The text was updated successfully, but these errors were encountered:
niviksha
changed the title
Can ibis use a sql query as an expression
(Enhancement) Use a sql query as an expression
Mar 17, 2019
Resolves#1731
Author: Ivan Ogasawara <ivan.ogasawara@gmail.com>
Closes#1736 from xmnlab/add_client_sql_mapd and squashes the following commits:
968f1b9 [Ivan Ogasawara] Added sql method for mapd backend.
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
The text was updated successfully, but these errors were encountered: