title: Why kafka-avro-console-consumer doesn't display the default value for the missing field?
body: <p>OK, now I am a bit frustrated considering the fact that I already asked a related question:</p>
  
  <p><a href="https://stackoverflow.com/questions/55478598/why-kafka-avro-console-producer-doesnt-honour-the-default-value-for-the-field">Why kafka-avro-console-producer doesn&#39;t honour the default value for the field?</a></p>
  
  <p>If producer uses the old schema without the new field f2, consumer that uses new schema should accept the default for that field, but that is not obvious in case of kafka-avro-console-consumer:</p>
  
  <pre><code>$ kafka-avro-console-producer --broker-list localhost:9092 --topic test-avro --property  schema.registry.url=http://localhost:8081 --property value.schema='{"type":"record","name":"myrecord1","fields":[{"name":"f1","type":"string"}]}'
  
  {"f1": "value3"}
  
  $ kafka-avro-console-consumer --bootstrap-server localhost:9092 --topic test-avro --property schema.registry.url=http://localhost:8081 --property value.schema='{"type":"record","name":"myrecord1","fields":[{"name":"f1","type":"string"},{"name": "f2", "type": "int", "default": 0}]}'
  
  {"f1":"value3"}
  </code></pre>
  
  <p>I mean, OK, it really does not throw an exception and terminate due to a missing f2 field, that is OK, and it shows the actual message that it received, but should it not display instead of that the representation of that message according to the schema it uses?</p>
  
  <p>Here are both versions of the schema:</p>
  
  <pre><code>curl http://localhost:8081/subjects/test-avro-value/versions/1
  {"subject":"test-avro-value","version":1,"id":5,"schema":"{\"type\":\"record\",\"name\":\"myrecord1\",\"fields\":[{\"name\":\"f1\",\"type\":\"string\"}]}"}
  curl http://localhost:8081/subjects/test-avro-value/versions/2
  {"subject":"test-avro-value","version":2,"id":6,"schema":"{\"type\":\"record\",\"name\":\"myrecord1\",\"fields\":[{\"name\":\"f1\",\"type\":\"string\"},{\"name\":\"f2\",\"type\":\"int\",\"default\":0}]}"}
  </code></pre>
  
  <p>So, does it mean that such scenario cannot be tested with kafka-avro-console-consumer?</p>
  
  <p><a href="https://i.stack.imgur.com/5cJ8p.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5cJ8p.jpg" alt="enter image description here"></a></p>