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

fix: Implement TraverseStatement.refersToParent() exception #1516

Closed
wants to merge 1 commit into from

Conversation

TalkingSiren
Copy link

What does this PR do?

Fix the UnsupportedOperationException (Implement TraverseStatement.refersToParent()) when using sql traverse

Motivation

Needed because of migration from orientdb and there it worked.

Checklist

  • I tried to build but tests failed everywhere

@lvca
Copy link
Contributor

lvca commented Mar 23, 2024

Checked in the OrientDB source code and its implementation is:

  public boolean refersToParent() {
    if (projections != null && projections.stream().anyMatch(x -> x.refersToParent())) {
      return true;
    }
    if (this.target != null && this.target.refersToParent()) {
      return true;
    }
    if (this.whileClause != null && this.whileClause.refersToParent()) {
      return true;
    }
    return false;
  }

@lvca lvca self-assigned this Mar 23, 2024
@lvca lvca added this to the 24.3.1 milestone Mar 23, 2024
lvca added a commit that referenced this pull request Mar 23, 2024
@lvca
Copy link
Contributor

lvca commented Mar 23, 2024

Just pushed the same as for OrientDB. Thanks for reporting it.

@lvca lvca closed this Mar 23, 2024
@lvca lvca added bug Something isn't working fixed labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants