Skip to content

Add physical plan optimization to decide dictionary encoding #24117

Description

@Rich-T-kid

Is your feature request related to a problem or challenge?

Even with good stats available, there's no optimizer rule that uses them to decide whether a string column should be dictionary-encoded.

Describe the solution you'd like

Add a physical plan optimization pass that looks at column statistics (NDV, aggregation heaviness) as well as user-defined flags/thresholds, and decides whether to encode a given string column as a dictionary array.

Will need extensive testing and benchmarking to decide whether this should be enabled by default.

Describe alternatives you've considered

Final piece of : #22891

part of epic : #24111

Additional context

No response

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions