Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3678

[Rust] Support write float value to field defined as double

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/avro/blob/b8937526d32928b3b29040e862f7689d7230bddb/lang/rust/avro/src/types.rs#L405

      Currently a Avro value of the type float (32) cannot be resolved against a schema where the type is defined as double (64). We already support type widening from int -> long (dest. schema) as this is completely lossless, so I think we should also support the same for float -> double for consistency & convenience as this is a common use case.

      Attachments

        Activity

          People

            shaeqahmed Shaeq Ahmed
            shaeqahmed Shaeq Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m