jychen7 commented on code in PR #2277:
URL: https://github.com/apache/avro/pull/2277#discussion_r1231654796


##########
lang/ruby/lib/avro/io.rb:
##########
@@ -423,11 +423,13 @@ def read_default_value(field_schema, default_value)
             field_val = read_default_value(field.type, json_val)
             read_record[field.name] = field_val
           end
-          return read_record
+          read_record
         else
           fail_msg = "Unknown type: #{field_schema.type}"
           raise AvroError, fail_msg
         end
+
+        field_schema.logical_type ? field_schema.type_adapter.decode(datum) : 
datum

Review Comment:
   I see, because of the Identity
   
https://github.com/apache/avro/blob/01ae3ca6549cc740396140defe891691e0e3a532/lang/ruby/lib/avro/logical_types.rb#L244-L252



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to