You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test fails with Record "schema" field 1 ought to be valid Avro named type: Union item 2 ought to be valid Avro type: Record "*" field "price": default value ought to encode using field schema: cannot transform to bytes, expected *big.Rat, received string
Even if you try to change the schema to have a default type of *big.Rat there is no way to achieve this as the value will never get interpreted as a *big.Int. However, the Avro schema shouldn't have to work with a specific GO type it should be able to handle a default value specified in the same way as a normal avro decimal field.
The text was updated successfully, but these errors were encountered:
Similar issue to #198
For any field with logicalType decimals, setting a default value, throws an error.
default value ought to encode using field schema...
The test fails with Record "schema" field 1 ought to be valid Avro named type: Union item 2 ought to be valid Avro type: Record "*" field "price": default value ought to encode using field schema: cannot transform to bytes, expected *big.Rat, received string
Even if you try to change the schema to have a default type of *big.Rat there is no way to achieve this as the value will never get interpreted as a *big.Int. However, the Avro schema shouldn't have to work with a specific GO type it should be able to handle a default value specified in the same way as a normal avro decimal field.
The text was updated successfully, but these errors were encountered: