class java.util.ArrayList cannot be cast to class org.apache.avro.specific.SpecificRecord (java.util.ArrayList is in module java.base of loader 'bootstrap'; org.apache.avro.specific.SpecificRecord is in unnamed module of loader 'app')
another issue org.apache.kafka.streams.errors.StreamsException: Error encountered sending record to topic structure-KTABLE-AGGREGATE-STATE-STORE-0000000015-repartition for task 2_0 due to: org.apache.kafka.common.errors.SerializationException: Error serializing Avro message
final KTable<String, ArrayList<Employee>> caKTables = caKTable
.groupBy((key, value) -> pair(value.getBrStId(), value))
.aggregate((Initializer<ArrayList<Employee>>) ArrayList::new, (key, value, aggregate) -> {
aggregate.add(value);
return aggregate;
}, (key, oldValue, agg) -> {
agg.remove(oldValue);
return agg;
});
brKTable
.leftJoin(caKTables, caJoiner) // TODO
.toStream()
.filter((key, value) -> value != null)
.map(this::changeKey);