Skip to content

Conversation

@dantengsky
Copy link
Member

@dantengsky dantengsky commented Jan 15, 2026

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

fixes join panic which executing delete stmt :
(Code: 1068, Text = Cannot join handle from context's runtime, cause: PanicError. Code: 1104, Text = index out of bounds)

to be detailed

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Jan 15, 2026
@dantengsky dantengsky changed the title fix: join panic which executing delete stmt fix: join panic while executing delete stmt Jan 16, 2026
  Mutation planning was passing planner metadata column indexes (including internal
  columns like _block_name) as Fuse table schema field indexes, which could
  cause TableSchema::project() to index out of bounds during DELETE.

  Convert mutation read columns to base column_positions (schema FieldIndex),
  carry internal columns separately, and generate them from block_meta_index at
  execution time for filter evaluation.
@dantengsky
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix this PR patches a bug in codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant