Skip to content

Support computing ScalarValue return types from argument values (e.g. constants) rather than just types #8624

Description

@alamb

Def one UDF:

my_udf(expr, 'return_type')

Using:

case1:

my_duf(col, 'UInt32')

Return Type is:
DataType::UInt32

case2:

my_duf(col, 'UInt64')

Return Type is:
DataType::UInt64

At present, the above udf cannot be realized through the ReturnTypeFunction. This is because the ReturnTypeFunction provides only the data types of the input parameters.

As we discussed on #7657 (comment) arrow_cast does this but it is handled specially. This ticket tracks adding UDF support for it

Originally posted by @JasonLi-cn in #7657

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions