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: Correctly handle nested one to one joins #964

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #826

Description

Implements a couple of unimplemented Spans functions in the type join nodes. They were preventing the spans from correctly propagating through the plan (I believe they were never set, and it was more a case that all records were being yielded and only the first being used, rather than an overwrite due to some shared state as the issue first looked like to me).

@AndrewSisley AndrewSisley added bug Something isn't working action/no-benchmark Skips the action that runs the benchmark. area/planner Related to the planner system labels Dec 12, 2022
@AndrewSisley AndrewSisley added this to the DefraDB v0.4 milestone Dec 12, 2022
@AndrewSisley AndrewSisley requested a review from a team December 12, 2022 22:48
@AndrewSisley AndrewSisley self-assigned this Dec 12, 2022
@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Merging #964 (4691d6c) into develop (26d1904) will increase coverage by 0.01%.
The diff coverage is 62.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #964      +/-   ##
===========================================
+ Coverage    59.94%   59.95%   +0.01%     
===========================================
  Files          157      157              
  Lines        17682    17687       +5     
===========================================
+ Hits         10599    10604       +5     
  Misses        6129     6129              
  Partials       954      954              
Impacted Files Coverage Δ
planner/type_join.go 72.98% <62.50%> (+0.39%) ⬆️

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AndrewSisley AndrewSisley merged commit 18bab4a into develop Dec 13, 2022
@AndrewSisley AndrewSisley deleted the sisley/fix/I826-one-one-one branch December 13, 2022 04:55
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Add test for one-one from secondary dir

It passes, but was untested

* Implement type join spans functions

Todos are dangerous :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/planner Related to the planner system bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picks up previous iteration data on deeper one-one join
2 participants