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

Fixed bug where unique results of null values failed to return #2354

Merged
merged 6 commits into from May 10, 2024

Conversation

ivakegg
Copy link
Collaborator

@ivakegg ivakegg commented Apr 19, 2024

  • The intermedite results mechanism which got fixed with the most recent unique mechanism resulted in this bug

* The intermedite results mechanism which got fixed with the
  most recent unique mechanism resulted in this bug
* The query model
*/
private void setModelMappings(QueryModel model) {
if (model != null) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This whole mapping is already done in the DefaultQueryPlanner when setting up the query fields. This was redundant.

if (!values.isEmpty()) {
Collections.sort(values);
String separator = "f-" + field + '/' + (count++) + ":";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding the count in here is not really useful.

if (keyDocumentEntry.getValue().isIntermediateResult()) {
return keyDocumentEntry;
}

Copy link
Collaborator Author

@ivakegg ivakegg Apr 19, 2024

Choose a reason for hiding this comment

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

This was the critical piece to fix the null document issue.

@ivakegg ivakegg merged commit 15f08a3 into integration May 10, 2024
3 checks passed
@ivakegg ivakegg deleted the bugfix/uniqueNulls branch May 10, 2024 20:19
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.

None yet

4 participants