Skip to content

[Subtask]: C08 — Make indexed access and persisted filtering collation-correct #29487

Open

Description

@ck89119

Parent Issue

#29479 — C08

Detail of Subtask

Indexed access must match a correct original-value scan; pruning may retain extra candidates but must never lose a true match.

Scope

  • Cover point/range/IN/index-join probes, composite bounds, prefixes, covering-index recovery and LIKE range rewrites.
  • Cover runtime filters, zonemap/Bloom, object/block pruning, seek and early stop.
  • Treat original-column summaries separately from transformed index-key summaries.

Acceptance criteria

  • Forced or observed index execution returns the same original values as a correct reference scan.
  • Use an index only with a matching domain or a proven conversion; do not truncate over-width probes or transform weights twice.
  • Test persisted multi-block/object data, embedded NUL, long common prefixes, 30-byte summary truncation and upper-bound overflow.
  • Observe actual filter execution and blocks read; full scanning is a safe fallback but not completion of the promised optimization.
  • Include a negative mutant proving that an unconverted probe would fail the oracle.

Describe implementation you've considered

Build on C07 and PR #29057. Gate unrecoverable covering substitutions and unproven LIKE/prefix/pruning rewrites.

Additional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions