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

[Ruby] decimal default is not converted to BigDecimal

    XMLWordPrintableJSON

Details

    Description

      Background

      https://issues.apache.org/jira/browse/AVRO-3773 is to fix the validation of decimal default

      After it is fixed (or we skip it), we are going to decode it.

      the default value is used when resolving schema resolution.

      Expect

      the decoded record should have default value in BigDecimal type, e.g.

      {"sales" => BigDecimal("12.34"), "tax" => BigDecimal("0.000")} 

      Actual

      the decoded record have default value in string/bytes type

      {"sales" => BigDecimal("12.34"), "tax" => "\u0000"} 

      Attachments

        Issue Links

          Activity

            People

              jychen7 Rich
              jychen7 Rich
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2h 10m
                  2h 10m