Skip to content

[Feature request] Can the parameters of UDF support SQL queries? #9488

@LeiRui

Description

@LeiRui

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

When using the M4 UDF, I want to set the value of the parameter 'timeInterval' as (maxTime-minTime)/1000, where maxTime and minTime are the maximal and minimal timestamps of the input time series respectively. In this case, it would be nice if UDF parameters supported SQL queries so that the parameters could be determined at runtime instead of being hard-coded.

Solution

No response

Alternatives

I could write specific UDF to satisfy the needs, calculating maxTime and minTime in the code instead of being required as parameters.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

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