ksql icon indicating copy to clipboard operation
ksql copied to clipboard

UDAFs cannot be created with non-primitive initial arguments

Open jzaralim opened this issue 2 years ago • 2 comments

Describe the bug From a comment posted by @reneesoika in https://github.com/confluentinc/ksql/pull/9361#discussion_r933662030

initial args must be Literals

For example, if a user wanted to create a UDAF that appends values to an array (appendToArray(col, ARRAY[2, 4])), they would not be able to.

jzaralim avatar Aug 18 '22 20:08 jzaralim

Is @reneesoika working on solving this (by adding support for custom objects to variadics)?

suhas-satish avatar Aug 18 '22 21:08 suhas-satish

No, allowing Object in variadics won't affect initial args.

reneesoika avatar Aug 18 '22 21:08 reneesoika