Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DruidJoinQueryRel for pydruid #253

Open
rooom13 opened this issue Mar 9, 2021 · 0 comments
Open

DruidJoinQueryRel for pydruid #253

rooom13 opened this issue Mar 9, 2021 · 0 comments

Comments

@rooom13
Copy link

rooom13 commented Mar 9, 2021

Which is the equivalent for a DruidJoinQueryRel on pydruid?

DruidJoinQueryRel java reference: https://github.com/apache/druid/blob/master/sql/src/main/java/org/apache/druid/sql/calcite/rel/DruidJoinQueryRel.java

I would like to execute multiple queries on parallel via a single druid query. This can be achieved by a SQL query like:

SELECT f_cnt, f_vol FROM
  (SELECT sum("vol") as "f_vol" FROM "A"),
  (SELECT sum("count") as "f_cnt"  FROM "B")

Which is translated to native druid query as

DruidJoinQueryRel (joinType) & 2 sub queries DruidQueryRel

But there is no such join query on the pydruid client

Or any other suggestion for executing multiple queries on a single druid query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant