Skip to content

Support argMax/argMin #466

@tlightsky

Description

@tlightsky

Summary
pretty useful aggregate function

Example

Input table:

┌─user─────┬─salary─┐
│ director │   5000 │
│ manager  │   3000 │
│ worker   │   1000 │
└──────────┴────────┘

Query:

SELECT argMax(user, salary) FROM salary;

Result:

┌─argMax(user, salary)─┐
│ director             │
└──────────────────────┘

Query:

SELECT argMin(user, salary) FROM salary;

Result:

┌─argMax(user, salary)─┐
│ worker               │
└──────────────────────┘

argMax
argMin

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions