Received exception from server (version 20.4.9):
Code: 8. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: Field filtered_count not found in Avro schema: While executing SourceFromInputStream.

In case of field added to the Kafka schema registry, it is necessary to update the ClickHouse schema as well. Perhaps it sits in memory and needs to be reloaded.

An error might occur in a situation when after a deployment it appears that there are both old and new versions of messages floating around.

If no solution regarding the proper schema update is found, it is possible to avoid problems by following the next steps during the deployment of new messages:

  • stop all services that produce old messages
  • wait until all of them will be consumed by statistics group
  • deploy new messages