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

RequireTimeCondition does not handle complex joins #17407

Open
abhishek-chouhan opened this issue Oct 24, 2024 · 0 comments · May be fixed by #17408
Open

RequireTimeCondition does not handle complex joins #17407

abhishek-chouhan opened this issue Oct 24, 2024 · 0 comments · May be fixed by #17408

Comments

@abhishek-chouhan
Copy link
Contributor

Enabling druid.sql.planner.requireTimeCondition results in valid join queries being blocked.
Example -

SELECT distinct T1.dim1, T2.dim2 FROM
(SELECT dim1 from druid.foo WHERE dim1 <> '' AND __time >= '2000-01-01') AS T1,
(SELECT dim2 from druid.foo WHERE dim1 <> '' AND __time >= '2000-02-01') AS T2
WHERE T1.dim1=T2.dim2

Both the nested queries have a time filter for the above inner join, however the requireTimeCondition logic is looking for a time filter on the top level query.

@abhishek-chouhan abhishek-chouhan linked a pull request Oct 24, 2024 that will close this issue
8 tasks
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

Successfully merging a pull request may close this issue.

1 participant