Skip to content

The AVG function should not work on boolean inputs #1909

@shangyian

Description

@shangyian

DJ does type validation of SQL functions, and it incorrectly supports AVG(boolean) (see https://github.com/DataJunction/dj/blob/main/datajunction-server/datajunction_server/sql/functions.py#L955-L959) which is actually not supported by most SQL engines (Spark SQL, Trino). We should remove this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions