ksql icon indicating copy to clipboard operation
ksql copied to clipboard

Use KSQL types in UD(A)Fs instead of BigDecimal/List/Struct

Open agavra opened this issue 6 years ago • 2 comments

In order to give more flexibility and type safety to implementations of UDFs, we should do the following:

  1. wrap BigDecimal in KsqlDecimal which will provide both the schema and the value
  2. wrap List in KsqlArray which will provide both the schema and the value
  3. do not use Struct in udfs, but use KsqlStruct instead

agavra avatar Sep 25 '19 21:09 agavra

And of course, move to using SqlType and removing use of Connect's Schema in UDFS

big-andy-coates avatar Oct 11 '19 14:10 big-andy-coates

Removing out dependency on the Connect schema and types for our UDF framework (and serde framework!) will fix a whole family of bugs. See below for linked bugs as we find them.

big-andy-coates avatar Aug 10 '20 15:08 big-andy-coates