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

exclude_plan doesn't work for queries with left joins #277

Open
raipc opened this issue Sep 19, 2023 · 0 comments
Open

exclude_plan doesn't work for queries with left joins #277

raipc opened this issue Sep 19, 2023 · 0 comments

Comments

@raipc
Copy link

raipc commented Sep 19, 2023

Please, take a look at the example: https://github.com/raipc/esper-join/blob/master/src/main/java/raipc/EsperJoin.java

@hint('exclude_plan(true)')
select * from A#keepall as a
left outer join B#keepall as b on a.primaryKey = b.primaryKey
left outer join C#keepall as c on a.primaryKey = c.primaryKey

The query fails with EPCompileException: Not a 3-way join

After changing the hint to 'exclude_plan(from_streamname="a" and to_streamname="b")' the exception is a bit different: EPCompileException: Error in stream 2 streamsJoinedPerStream=stream 0 : [2]

The error is reproduced with joins of 3 or more tables where left join is present

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

No branches or pull requests

2 participants