Skip to content

rust: make blocking-key qualification safe for qualifiers and UTF-8 #972

Closed

Description

@athvin

Evidence

qualify copies UTF-8 literal bytes as characters, corrupting values such as 'München'. It also keeps a prequalified key l.email unchanged on both sides, so the compiled predicate becomes l.email = l.email and can admit every non-null pair. Config publish checks the column name but not its qualifier. Escaped double-quoted identifiers are also split incorrectly. Source.

Change

Reject prequalified key expressions at the config/compile boundary or rewrite them correctly per side; make token scanning Unicode and quote safe.

Done when

  • A prequalified key cannot compile into a tautological left/left predicate.
  • Non-ASCII string literals and escaped quoted identifiers survive compilation unchanged.
  • Published valid keys still generate the expected left/right predicate.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions