-
Notifications
You must be signed in to change notification settings - Fork 285
enhance expr format #22089
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
enhance expr format #22089
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
This pull request has been removed from the queue for the following reason: The pull request #22089 has been manually updated. If you want to requeue this pull request, you can post a |
If the ColPos and ColName in pushdown's ColExpr do not match, panic. If ColName is empty, preferentially use ColPos Approved by: @aunjgr, @gouhongshen
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #21437
What this PR does / why we need it:
If the ColPos and ColName in pushdown's ColExpr do not match, panic. If ColName is empty, preferentially use ColPos
PR Type
Bug fix
Description
Fix column position validation in filter expressions
Add panic checks for mismatched column names and positions
Update function signatures to include column position parameter
Handle empty column names by using position fallback
Changes diagram
Changes walkthrough 📝
expr_filter.go
Add column position parameter to filter operations
pkg/vm/engine/readutil/expr_filter.go
getColDefByName()
calls to includecolExpr.Col.ColPos
parameter
etc.)
expr_util.go
Implement column validation and position handling
pkg/vm/engine/readutil/expr_util.go
fmt
import for panic formattinggetColDefByName()
to acceptcolPos
parameter and validateconsistency
evalValue()
to handle empty column names and validatepositions
pkColId
parameter toevalValue()
function signaturepk_filter_base.go
Add primary key column ID to filter evaluations
pkg/vm/engine/readutil/pk_filter_base.go
evalValue()
calls to includeint32(tblDef.Pkey.PkeyColId)
parameter
validation