Skip to content

TypeSignature::Coercible for math functions #14763

Open

Description

@jayzhan211

Is your feature request related to a problem or challenge?

Log for example can be handled with TypeSignature::Coercible where the desired type is float and allow source types are integer.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

#14440
#13301

Activity

  1. alan910127 commented on Feb 19, 2025

    @alan910127
    Contributor

    take

  2. findepi commented on Feb 19, 2025

    @findepi
    Member

    Log for example can be handled with TypeSignature::Coercible where the desired type is float and allow source types are integer.

    We must not encode coercion rules in every single function.
    Standard coercion rules must be property of the engine. Not a property of every single function separately.

  3. jayzhan211 commented on Feb 19, 2025

    @jayzhan211
    ContributorAuthor

    We must not encode coercion rules in every single function.
    Standard coercion rules must be property of the engine. Not a property of every single function separately.

    In an extensible query engine, users should define coercion rules as part of the function definition, specifying how data types are converted. The engine itself cannot define coercion rules for every function.

  4. findepi commented on Feb 19, 2025

    @findepi
    Member

    In an extensible query engine, users should define coercion rules as part of the function definition, specifying how data types are converted

    Why??

    The engine itself cannot define coercion rules for every function.

    The function itself cannot define coercion rules for the engine.

  5. jayzhan211 commented on Feb 19, 2025

    @jayzhan211
    ContributorAuthor

    Why not? I don't see any problem with my statement

  6. alan910127 commented on Feb 25, 2025

    @alan910127
    Contributor

    I noticed that TypeSignatureClass::Numeric is marked as TODO, and I think math functions could benefit from using the Numeric class. Additionally, since there is no Float class, would it make sense to start by implementing Numeric first?

  7. removed their assignment
    on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions