Skip to content

Gh3334 2 #3338

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

Closed
wants to merge 18 commits into from
Closed

Gh3334 2 #3338

wants to merge 18 commits into from

Conversation

csharper2010
Copy link
Contributor

Now I had some time to work on a cleaner solution for #3334 which would make the pull request #3335 obsolete.

The change makes things explicit instead of working around trying to guess the kind of situation we are in.

csharper2010 and others added 11 commits November 24, 2020 07:57
Results from the query should be skipped if they are already in the
ISet distinction thus if distinction.Add is false. Currently, they are
only added if they have been there before.

Signed-off-by: csharper2010 <csharper2010@googlemail.com>
Results from the query should be skipped if they are already in the
ISet distinction thus if distinction.Add is false. Currently, they are
only added if they have been there before.

Signed-off-by: csharper2010 <csharper2010@googlemail.com>
Results from the query should be skipped if they are already in the
ISet distinction thus if distinction.Add is false. Currently, they are
only added if they have been there before.

Signed-off-by: csharper2010 <csharper2010@googlemail.com>
Convert EntityJoin to FROM_FRAGMENT only for first element
Adjust comment in HqlSqlWalker before adding an element without Parent to the tree and use AppendFromElement instead of direct AddChild
Comment on lines 842 to 843
if (fromElement.IsImplied)
fromElement.JoinSequence.SetUseThetaStyle(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (fromElement.IsImplied)
fromElement.JoinSequence.SetUseThetaStyle(true);

This hack should no longer be needed if it's a proper fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected results. Some tests are failed but only added in this PR. So this hack is still required for some reasons I don't understand. But anyway it's definitely a better fix for #3334.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comment (and effort)... I also think, it makes some things more explicit but does not fully eliminate the need for hacks.
I was experimenting also with removing the need for the if (elem.Parent == null)-Hack but not yet successful. Quite complex this thing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably OK with keeping it for now. But this PR causes some troubles with MySql on old tests. It needs to be investigated.

@fredericDelaporte
Copy link
Member

Replaced by #3369.

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

Successfully merging this pull request may close these issues.

5 participants