Skip to content

Min identified as aggregation function instead of transform function #8084

@mneedham

Description

@mneedham

When I try to use the min scalar function e.g.

select min(distance, 5) 
from courses limit 10

It instead uses the aggregation function. i.e. it finds the minimum value across all rows, rather than computing the minimum value of distance and 5 per row

image

If I would use the function with some hardcoded values then it does pick the correct function:

select min(7, 5) 
from courses limit 10

image

The same issue is there for the max function as well.

Metadata

Metadata

Assignees

No one assigned

    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