Skip to content

Projection stats Absent for columns referenced >1 time #22678

@neilconway

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions