Closed MichaelDrogalis closed 2 years ago
I don't think this is a bug. I'm not sure there's an easy way of supporting this using the current UDAF framework.
@purplefox Maybe bug was the wrong label. But you can see how you're basically toast if you can't use this with all your data types, right?
Maybe @agavra can chime in here - he is the expert on the UDAF type system. Perhaps there is some esoteric way of doing this.
And decimals too!
Until this is supported we should indicate when a type isn't supported. Currently I get an uncaught exception.
Until this is supported we should indicate when a type isn't supported. Currently I get an uncaught exception.
That's unexpected. It should return an error message. Can you provide example statements to recreate and the actual result please?
I've investigated this. Fixing this will involve enhancing the UDAF framework to support something similar to the schemaProvider
field of the @Udf
annotation. I'll look to raise a KLIP. Moving to next milestone, as this is now beyond what is possible in v0.11.
I'm going to drop this from the milestone and put this at p1, when we decide to pull in this enhancement we can add it to the current milestone
Bumping down the priority of this because of #5652
Should perhaps be updated in the docs, which already mention such for COLLECT_LIST
and COLLECT_SET
?
Namely, the docs for those 2 functions state "currently only works for simple types (not Map, Array, or Struct)" -- as this function should as well.
Just ran into this due to decimal. :(
https://github.com/confluentinc/ksql/pull/8878 should close this out!
When will this be available within confluent cloud ?
@adminnz, we don't have a public release date to share yet, but I can say that this feature will be available quite soon in Confluent Cloud, as part of ksqlDB 0.25.1.
Describe the bug
earliest/latest_by_offset
are critical functions for converting changelogs to streams, but they don't work with all the data types. Namely, they don't support structs, maps or arrays. These functions are one of the only mechanisms for directly during a stream into a table, so the lack of coverage can really hurt.To Reproduce
ksqlDB 0.9.0:
Both earliest + latest by offset should support structs, maps, and arrays.