Skip to content

Query result type inference too generic for certain function results #272

Closed
@janedbal

Description

@janedbal
  • See result of functions here and here. I hope I'm not mistaken, but those functions (COUNT, SUM, AVG, MIN, MAX, LENGTH) should always return int, do they not? Those are now infered as int<0, max>|numeric-string.
  • Also, this CASE should always be int imo.
  • And IDENTITY function seems to be infered as mixed even though the type of the FK should be known.

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