Skip to content

SQL: Allow MIN() and MAX() aggregate functions to operate also on arguments of type keyword #35639

Closed
@MagnusAnde

Description

@MagnusAnde

Allow MIN() and MAX() aggregate functions to operate
also on arguments of type keyword (and eventually also text) apart from the numeric and date.

This would simplify queries using GROUP BY returning columns of type keyword (and eventually text) that is not part of the group by statement. This would also harmonize with the expected behavior from persons used to sql in for example Sql Server.

select max(fieldOfTypeKeyword) from someIndex group by otherFieldOfTypeKeyword

This would return the last value in alphabetic order for the field fieldOfTypeKeyword in the group defined by the group by statement. The min() function would do the inverse.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions