-
Notifications
You must be signed in to change notification settings - Fork 276
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
[cherry-pick-16445] : use ctx instead of proc.ctx for rangesOnePart #16465
Conversation
…6445) use ctx instead of proc.ctx for rangesOnePart ___ ### **PR Type** Bug fix ___ ### **Description** - Added `ctx context.Context` parameter to several functions and methods in `filter.go` and `txn_table.go`. - Replaced usage of `proc.Ctx` with the new `ctx` parameter to ensure proper context handling. - Updated function and method calls to include the new `ctx` parameter. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Bug fix </strong></td><td><table> <tr> <td> <details> <summary><strong>filter.go</strong><dd><code>Add context parameter to filter functions and replace proc.Ctx usage</code></dd></summary> <hr> pkg/vm/engine/disttae/filter.go <li>Added <code>ctx context.Context</code> parameter to <code>TryFastFilterBlocks</code> and <br><code>ExecuteBlockFilter</code> functions.<br> <li> Replaced <code>proc.Ctx</code> with <code>ctx</code> in <code>ExecuteBlockFilter</code>.<br> </details> </td> <td><a href="https://github.com/matrixorigin/matrixone/pull/16445/files#diff-72c361bf0d27d0fe7b5cf43fb240c632bd12050ce7ea432075c6e29af161586f">+4/-1</a> </td> </tr> <tr> <td> <details> <summary><strong>txn_table.go</strong><dd><code>Add context parameter to txnTable methods and update calls</code></dd></summary> <hr> pkg/vm/engine/disttae/txn_table.go <li>Added <code>ctx context.Context</code> parameter to <code>rangesOnePart</code>, <br><code>tryFastFilterBlocks</code>, and <code>tryFastRanges</code> methods.<br> <li> Updated calls to <code>tryFastFilterBlocks</code> and <code>tryFastRanges</code> to include <code>ctx</code>.<br> <br> </details> </td> <td><a href="https://github.com/matrixorigin/matrixone/pull/16445/files#diff-ec8d7fbb6765aa12484ff5529b88835dc1da369005256b065fb3db4972f2d32f">+6/-2</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions Approved by: @triump2020
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/3321
What this PR does / why we need it:
use ctx instead of proc.ctx for rangesOnePart
PR Type
Bug fix
Description
ctx context.Context
parameter to several functions and methods infilter.go
andtxn_table.go
.proc.Ctx
with the newctx
parameter to ensure proper context handling.ctx
parameter.Changes walkthrough 📝
filter.go
Add context parameter to filter functions and replace proc.Ctx usage
pkg/vm/engine/disttae/filter.go
ctx context.Context
parameter toTryFastFilterBlocks
andExecuteBlockFilter
functions.proc.Ctx
withctx
inExecuteBlockFilter
.txn_table.go
Add context parameter to txnTable methods and update calls
pkg/vm/engine/disttae/txn_table.go
ctx context.Context
parameter torangesOnePart
method.TryFastFilterBlocks
to include the newctx
parameter.