Repository navigation
fix(sql): support prepared fulltext boolean search - #24796
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status🛑 Queue command has been cancelled |
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go # pkg/sql/plan/apply_indices_test.go
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
1 similar comment
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go
XuPeng-SH
left a comment
There was a problem hiding this comment.
The prepared-pattern path has a deterministic runtime panic because the former planning-time non-empty invariant was not moved to the execution boundary. Targeted parser, plan, fulltext, and table-function packages pass, but none covers dynamic empty/NULL input.
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go
# Conflicts: # pkg/sql/parsers/dialect/mysql/mysql_sql.go
Merge Queue Status
This pull request spent 4 hours 47 minutes 20 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #24796 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed head 89a002a. The previous blocker is fully addressed: dynamic NULL/empty patterns fail before value access or SQL construction, PatternToSql defensively rejects zero patterns, and source table-function Reset restores the execution generation after start errors. The repeated-Prepare cleanup also preserves the only compiler-injected state (optimized generate_series). Verified the generated parser is reproducible, the PR merges cleanly with current main, targeted parser/fulltext/planner/table-function tests pass, and the lifecycle matrix passes under the race detector. No remaining blocking correctness, performance, or unhappy-path issue found. Please sync the latest main before merge because the branch is currently behind.
What type of PR is this?
Which issue(s) this PR fixes:
issue #24735
What this PR does / why we need it:
Supports prepared fulltext boolean search patterns such as
MATCH(col) AGAINST(? IN BOOLEAN MODE).Changes:
varcharbefore buildingfulltext_match.valid -> invalid -> validprepared executions.Validation:
makeinpkg/sql/parsers/dialect/mysqlgo test ./pkg/sql/parsers/dialect/mysql -count=1go test ./pkg/sql/parsers/tree -count=1go test ./pkg/fulltext -count=1go test ./pkg/sql/colexec/table_function -count=1go test ./pkg/sql/plan/explain -run TestFullTextSql -count=1go test ./pkg/sql/plan -run 'FullText|fullText|fulltext' -count=1git diff --check