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

Make CoalesceStep extensible #2031

Merged

Conversation

porunov
Copy link
Contributor

@porunov porunov commented Apr 19, 2023

This PR implements part of #2027 . Close this PR without merging in case #2027 is merged.

This PR will make possible to extend CoalesceStep which is needed for JanusGraph/janusgraph#2996 . This will help creating a replacement step for original CoalesceStep with optimizations in place.

Related issue: https://issues.apache.org/jira/browse/TINKERPOP-2927

Related issue: https://issues.apache.org/jira/browse/TINKERPOP-2927

Signed-off-by: Oleksandr Porunov <alexandr.porunov@gmail.com>
@porunov
Copy link
Contributor Author

porunov commented Apr 19, 2023

The failed test is most likely flaky:

Error:  Tests run: 1089, Failures: 1, Errors: 0, Skipped: 502, Time elapsed: 17.124 s <<< FAILURE! - in org.apache.tinkerpop.gremlin.tinkergraph.TinkerGraphComputerFeatureTest
Error:  g_V_hasXname_rippleX_inXcreatedX_peerPressure_withXedges_outEX_withyXpropertyName_clusterX_repeatXunionXidentity__bothX_timesX2X_dedup_valueMapXname_clusterX(Step - peerPressure())  Time elapsed: 0.047 s  <<< FAILURE!

@kenhuuu
Copy link
Contributor

kenhuuu commented Apr 20, 2023

I'm guessing you just want to override the flatMap() method? FlatMapStep seems to be fairly stable.

VOTE +1

@vkagamlyk
Copy link
Contributor

VOTE+1

porunov added a commit to porunov/tinkerpop that referenced this pull request Apr 20, 2023
Signed-off-by: Oleksandr Porunov <alexandr.porunov@gmail.com>
@porunov
Copy link
Contributor Author

porunov commented Apr 20, 2023

I'm guessing you just want to override the flatMap() method? FlatMapStep seems to be fairly stable.

Yes, that's right. The idea is to change flatMap() method to apply multi-query JanusGraph optimization when possible to wrapped traversals under CoalesceStep.

@xiazcy
Copy link
Contributor

xiazcy commented Apr 20, 2023

VOTE +1

@kenhuuu kenhuuu merged commit 226569a into apache:3.6-dev Apr 21, 2023
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.

4 participants