Skip to content

Projection stats Absent for columns referenced >1 time #22678

Closed

Description

@neilconway

Describe the bug

ProjectionExprs::project_statistics uses std::mem::take to move an input column's ColumnStatistics into the output when given a direct column reference. This means if the column is referenced again (either directly or in a CAST expression), the statistics are Absent.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Activity

  1. added theissue type on May 31, 2026
  2. neilconway commented on May 31, 2026

    @neilconway
    ContributorAuthor

    take

  3. added a commit that references this issue on Jun 1, 2026
    85bc5ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions