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

startIndex fix for druid subsequent query #718

Merged
merged 1 commit into from Oct 8, 2020

Conversation

mcjyang
Copy link
Collaborator

@mcjyang mcjyang commented Oct 7, 2020

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

This PR aims to fix the misuse of startIndex for subsequent query in MultiEngineQuery.

Currently, if we have greater than 0 startIndex, it will pass to both drivingQuery as well as the subsequent one, which will cause unwanted row drop in druid for the following places:
https://github.com/yahoo/maha/blob/master/druid/src/main/scala/com/yahoo/maha/executor/druid/DruidQueryExecutor.scala#L237
https://github.com/yahoo/maha/blob/master/druid/src/main/scala/com/yahoo/maha/executor/druid/DruidQueryExecutor.scala#L264-L269

This PR modifies the RequestModel for subsequent queries. If this is not ideal, another option is modify the startIndex specific for druid query:
https://github.com/yahoo/maha/blob/master/druid/src/main/scala/com/yahoo/maha/executor/druid/DruidQueryExecutor.scala#L164-L168
For this option we can either check dimdriven-related parameters or check if the previous rowList is empty.

@pranavbhole pranavbhole merged commit 4a20705 into yahoo:master Oct 8, 2020
@mcjyang mcjyang deleted the startIndex-fix branch July 2, 2021 18:32
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 this pull request may close these issues.

None yet

2 participants