Open tanmaybansal22 opened 4 years ago
hi @freakytanmay I think the problem might be with the lowercased v_id
in the struct definition. Can you attach any ksql server logs you may have? If it doesn't show up when you DESCRIBE FUNCTION
there will probably be an associated error in the error logs failing to load it.
Not the same as, but in a related code area to https://github.com/confluentinc/ksql/issues/5364. Who ever picks this up should probably try to address both.
removing p0 as we're awaiting more info on this one and #5364 has been closed
FYI #5364 was only closed as a duplicate of #4961. It wasn't fixed.
Describe the bug When a custom UDF returns STRUCT which has optional fields, push queries are not working. The function definition shows nothing in variations.
To Reproduce
Steps to reproduce the behavior, include: The version of Confluent Platform is 5.5.0 and ksqlDB is 0.7.1.
import java.util.*;
import org.apache.kafka.connect.data.Schema; import org.apache.kafka.connect.data.SchemaBuilder; import org.apache.kafka.connect.data.Struct; import org.json.*;
import org.slf4j.Logger; import org.slf4j.LoggerFactory;
@UdfDescription(name = "extract data", description = "extract data") public class ExtractData {
}
create stream test_stream( id varchar, source varchar, ch_n varchar, name varchar, c_id varchar, data varchar, cc_id varchar, cc_key varchar, enc varchar, extr varchar, ts varchar ) with (kafka_topic = 'new_topic', partitions = 1, replications = 1, value_format = 'json')
KSQL Error when I execute function : Function 'extractdata' does not accept parameters (STRING, STRING, STRING, STRING, STRING, STRING, STRING, STRING, STRING, STRING, STRING).
Valid alternatives are: