-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Mark non-unique lookup vindex as backfill to ignore vindex selection #14227
Mark non-unique lookup vindex as backfill to ignore vindex selection #14227
Conversation
4a209f2
to
67d498f
Compare
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
// IsBackfilling implements the LookupBackfill interface | ||
func (ln *LookupNonUnique) IsBackfilling() bool { | ||
return ln.writeOnly | ||
} | ||
|
||
// Query implements the LookupPlanable interface | ||
func (ln *LookupNonUnique) Query() (selQuery string, arguments []string) { | ||
return ln.lkp.query() |
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.
add this to ConsistentLookup
as well.
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 in 7361fe245816db696c12da9306da125539aacffa, I think using *clCommon
should take care of that.
Thank you for your contribution. I updated the title to suit the changes. |
7361fe2
to
b24ce8a
Compare
the plan_test is failing
can you update the expected query so that the test can be 🟢 |
b24ce8a
to
2152b31
Compare
Done, would you mind running the tests again? |
Done, they are re-triggered. |
Ugh, the CI failed on |
2152b31
to
021d6bb
Compare
Sure, just did. Is there a way to enable CI to run after a new git change is made in this PR? Don't want to keep bothering you all 😄 |
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
hi @aparajon not sure why CI is not starting. if you merge main again and push, it should start, and then we can merge your contribution. sorry for the hassle |
Signed-off-by: Armand Parajon <[email protected]>
Signed-off-by: Armand Parajon <[email protected]>
Signed-off-by: Armand Parajon <[email protected]>
021d6bb
to
7fd1740
Compare
Thanks @systay, I wonder if it's due to the way I've been syncing updates with main. I've been doing:
Just ran this again. |
Description
As a follow-up to #13505, this PR enables non-unique lookups to support the
isBackfilling
interface. This will prevent non-unique lookups from vindex selection during a backfill (i.e. whenwrite_only
is set totrue
).Related Issue(s)
Checklist
Deployment Notes