Skip to content

ESQL: make order in TOP optional #133964

@alex-spies

Description

@alex-spies

The third argument to TOP has to be either "asc" or "desc". This is cumbersome to write for the default case.

Let's make it optional and have it default to "desc", so that e.g. TOP(salary, 5) returns the highest 5 values for salary. Edit: see below for a discussion of the best default.

Relates #112386.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions