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

Explain incorrectly reporting filter for related types. #1540

Closed
jsimnz opened this issue May 26, 2023 · 0 comments
Closed

Explain incorrectly reporting filter for related types. #1540

jsimnz opened this issue May 26, 2023 · 0 comments
Assignees
Labels
area/planner Related to the planner system bug Something isn't working
Milestone

Comments

@jsimnz
Copy link
Member

jsimnz commented May 26, 2023

A query with a related type, with a filter applied to the related type, is being incorrectly reported.

Eg:

query {
  User(friends: {name: { _eq: "John"}}) {
    ...
  }
}

Will assign the filter fiends: {name: {_eq: "John"}} to the scanNode on the root of the typeJoin. But it should be reported on the selectNode above the typeJoin.

The actual filter is correctly applies to the selectNode, but the way the filters are rendered, misrepresents this.

Related to #1539

@jsimnz jsimnz added bug Something isn't working area/planner Related to the planner system labels May 26, 2023
@jsimnz jsimnz added this to the DefraDB v0.6 milestone May 26, 2023
@jsimnz jsimnz self-assigned this May 26, 2023
@jsimnz jsimnz closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/planner Related to the planner system bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant