Skip to content

Use max/min to estimate ndv if not existing #17459

@Xuanwo

Description

@Xuanwo
match (max, min) {
    (Datum::UInt(m), (Datum::UInt(n)) => ndv = ndv.min(m-n as _));
    (Datum::Int(m), (Datum::Int(n)) => ndv = ndv.min(m-n as _);
    _ => {}
}

Originally posted by @sundy-li in #17352 (comment)

Metadata

Metadata

Assignees

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