Skip to content

Dictionary lookup collides for distinct column paths with the same dot string #3828

Description

@costas-db

Problem

DictionaryPageReader keys column metadata and cached dictionary pages by ColumnPath.toDotString(). These distinct component paths therefore collide:

Top-level field named `a.b`: ["a.b"]
Nested field `b` in `a`:     ["a", "b"]

The later column overwrites the earlier entry under the shared "a.b" key.

Reproduction

A generic test uses two dictionary-encoded string columns with disjoint values:

["a.b"]    -> ["one", "two"]
["a", "b"] -> ["nested-one", "nested-two"]

Requesting the top-level dictionary currently returns:

expected: ["one", "two"]
actual:   ["nested-one", "nested-two"]

Proposed direction

Key the metadata and dictionary cache maps by component-based ColumnPath rather than flattened strings. This is an in-memory identity fix with no on-disk format change.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions