-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add pit for join queries #2703
Add pit for join queries #2703
Conversation
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes!
import org.opensearch.core.action.ActionListener; | ||
import org.opensearch.sql.legacy.esdomain.LocalClusterState; | ||
|
||
public class PointInTimeHandler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we write the classes to interface?
Also add java documentation to the class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
this.indices = indices; | ||
} | ||
|
||
public void create() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit tests??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added unit test for handler
|
||
public void delete() { | ||
DeletePitRequest deletePitRequest = new DeletePitRequest(pitId); | ||
client.deletePits( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have synchronous calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
request.addSort(FieldSortBuilder.DOC_FIELD_NAME, SortOrder.ASC); | ||
} | ||
// Set PIT | ||
request.setPointInTime(new PointInTimeBuilder(pit.getPitId())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if pit request didn't complete by the time code execution reaches this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented in PointInTimeHandler, we are actually listening to the response in listener instead of waiting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried printing Thread.currentThread().getId()
in run and while getting id from pitResponse, thread id is same so it's waiting. Looks like pit request will complete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Strange if it is working..I am good but I am still not sure...can you add logs somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added logs in pit handler impl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually mean thread id logs to comment or description. I am fine anyways.
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
legacy/src/main/java/org/opensearch/sql/legacy/pit/PointInTimeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
154cb26
into
opensearch-project:feature/pit
* Add pit for join queries (#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]> (cherry picked from commit 7815c96) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit to default cursor Signed-off-by: Rupal Mahajan <[email protected]> * Run CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * FIx unit tests for PIT changes Signed-off-by: Manasvini B S <[email protected]> * Addressed comments Signed-off-by: Manasvini B S <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (opensearch-project#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (opensearch-project#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (opensearch-project#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (opensearch-project#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit to default cursor Signed-off-by: Rupal Mahajan <[email protected]> * Run CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * FIx unit tests for PIT changes Signed-off-by: Manasvini B S <[email protected]> * Addressed comments Signed-off-by: Manasvini B S <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (#2703) * Add search after for join * Enable search after by default * Add pit * nit * Fix tests * ignore joinWithGeoIntersectNL * Rerun CI with scroll * Remove unused code and retrigger CI with search_after true * Address comments * Remove unused code change * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE * Fix scroll condition * nit * Add pit before query execution * nit * Move pit from join request builder to executor * Remove unused methods * Add pit in parent class's run() * Add comment for fetching subsequent result in NestedLoopsElasticExecutor * Update comment * Add javadoc for pit handler * Add pit interface * Add pit handler unit test * Fix failed unit test CI * Fix spotless error * Rename pit class and add logs * Fix pit delete unit test --------- * Add pit for multi query (#2753) * Add search after for join * Enable search after by default * Add pit * nit * Fix tests * ignore joinWithGeoIntersectNL * Rerun CI with scroll * draft * Remove unused code and retrigger CI with search_after true * Address comments * Remove unused code change * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE * Fix scroll condition * nit * Add pit before query execution * Refactor get response with pit method * Update remaining scroll search calls * Fix integ test failures * nit * Move pit from join request builder to executor * Remove unused methods * Move pit from request to executor * Fix pit.delete call missed while merge * Move getResponseWithHits method to util class * add try catch for create delete pit in minus executor * move all common fields to ElasticHitsExecutor * add javadoc for ElasticHitsExecutor * Add missing javadoc * Forcing an empty commit as last commit is stuck processing updates --------- --------- (cherry picked from commit 7815c96) Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Rupal Mahajan <[email protected]>
* Add pit for join queries (#2703) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Add pit in parent class's run() Signed-off-by: Rupal Mahajan <[email protected]> * Add comment for fetching subsequent result in NestedLoopsElasticExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Update comment Signed-off-by: Rupal Mahajan <[email protected]> * Add javadoc for pit handler Signed-off-by: Rupal Mahajan <[email protected]> * Add pit interface Signed-off-by: Rupal Mahajan <[email protected]> * Add pit handler unit test Signed-off-by: Rupal Mahajan <[email protected]> * Fix failed unit test CI Signed-off-by: Rupal Mahajan <[email protected]> * Fix spotless error Signed-off-by: Rupal Mahajan <[email protected]> * Rename pit class and add logs Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit delete unit test Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit for multi query (#2753) * Add search after for join Signed-off-by: Rupal Mahajan <[email protected]> * Enable search after by default Signed-off-by: Rupal Mahajan <[email protected]> * Add pit Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Fix tests Signed-off-by: Rupal Mahajan <[email protected]> * ignore joinWithGeoIntersectNL Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI with scroll Signed-off-by: Rupal Mahajan <[email protected]> * draft Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code and retrigger CI with search_after true Signed-off-by: Rupal Mahajan <[email protected]> * Address comments Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused code change Signed-off-by: Rupal Mahajan <[email protected]> * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE Signed-off-by: Rupal Mahajan <[email protected]> * Fix scroll condition Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Add pit before query execution Signed-off-by: Rupal Mahajan <[email protected]> * Refactor get response with pit method Signed-off-by: Rupal Mahajan <[email protected]> * Update remaining scroll search calls Signed-off-by: Rupal Mahajan <[email protected]> * Fix integ test failures Signed-off-by: Rupal Mahajan <[email protected]> * nit Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from join request builder to executor Signed-off-by: Rupal Mahajan <[email protected]> * Remove unused methods Signed-off-by: Rupal Mahajan <[email protected]> * Move pit from request to executor Signed-off-by: Rupal Mahajan <[email protected]> * Fix pit.delete call missed while merge Signed-off-by: Rupal Mahajan <[email protected]> * Move getResponseWithHits method to util class Signed-off-by: Rupal Mahajan <[email protected]> * add try catch for create delete pit in minus executor Signed-off-by: Rupal Mahajan <[email protected]> * move all common fields to ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * add javadoc for ElasticHitsExecutor Signed-off-by: Rupal Mahajan <[email protected]> * Add missing javadoc Signed-off-by: Rupal Mahajan <[email protected]> * Forcing an empty commit as last commit is stuck processing updates Signed-off-by: Rupal Mahajan <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> * Add pit to default cursor Signed-off-by: Rupal Mahajan <[email protected]> * Run CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * Rerun CI without pit unit test Signed-off-by: Rupal Mahajan <[email protected]> * FIx unit tests for PIT changes Signed-off-by: Manasvini B S <[email protected]> * Addressed comments Signed-off-by: Manasvini B S <[email protected]> --------- Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Co-authored-by: Rupal Mahajan <[email protected]> (cherry picked from commit 69853fe) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add pit for join queries (#2703) * Add search after for join * Enable search after by default * Add pit * nit * Fix tests * ignore joinWithGeoIntersectNL * Rerun CI with scroll * Remove unused code and retrigger CI with search_after true * Address comments * Remove unused code change * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE * Fix scroll condition * nit * Add pit before query execution * nit * Move pit from join request builder to executor * Remove unused methods * Add pit in parent class's run() * Add comment for fetching subsequent result in NestedLoopsElasticExecutor * Update comment * Add javadoc for pit handler * Add pit interface * Add pit handler unit test * Fix failed unit test CI * Fix spotless error * Rename pit class and add logs * Fix pit delete unit test --------- * Add pit for multi query (#2753) * Add search after for join * Enable search after by default * Add pit * nit * Fix tests * ignore joinWithGeoIntersectNL * Rerun CI with scroll * draft * Remove unused code and retrigger CI with search_after true * Address comments * Remove unused code change * Update pit keep alive time with SQL_CURSOR_KEEP_ALIVE * Fix scroll condition * nit * Add pit before query execution * Refactor get response with pit method * Update remaining scroll search calls * Fix integ test failures * nit * Move pit from join request builder to executor * Remove unused methods * Move pit from request to executor * Fix pit.delete call missed while merge * Move getResponseWithHits method to util class * add try catch for create delete pit in minus executor * move all common fields to ElasticHitsExecutor * add javadoc for ElasticHitsExecutor * Add missing javadoc * Forcing an empty commit as last commit is stuck processing updates --------- * Add pit to default cursor * Run CI without pit unit test * Rerun CI without pit unit test * FIx unit tests for PIT changes * Addressed comments --------- (cherry picked from commit 69853fe) Signed-off-by: Rupal Mahajan <[email protected]> Signed-off-by: Manasvini B S <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Rupal Mahajan <[email protected]>
Description
Issues Resolved
#2603
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.