-
Notifications
You must be signed in to change notification settings - Fork 377
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
Please produce "comparators" for more complex queries. #3326
Comments
That's correct! Though FYI
That's the default behaviour, but you can ask drift to override == for those result objects using the |
For custom queries with joins built at runtime, drift uses Applying |
For the time being, I wasn't aware of the As you say @simolus3 the best is to skip the whole step if the resulting row didn't change at all. But then there should be a compile option to enable it so you could do some extensive debugging. |
Hi !
In this post #3295 we have brought up the discussion on to use
distinct
as "standard" drift, which may be out of band, sincedistinct
is bound to the stream.(I think) the comparator in that
distinct
function uses the overrided == operator of the object provided by drift, but not for results that contains more complex joins or partly selections.Example 1:
will most likely produce a working comparator.
But
Example 2:
may not produce a comparator, and distinct may compare the object references in stead, which are different, even if the contents may be the same.
I suggest that you may enhance this so that comparators are also produced on selections like that one in Example 2 above, so they can be used by
distinct
.The text was updated successfully, but these errors were encountered: