Skip to content

Commit

Permalink
Fix float values (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
zloyuser authored Feb 5, 2024
1 parent 2466d52 commit ed386e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ abstract class JsonDeserialize<R : ConnectRecord<R>?> : Transformation<R> {
{
return when (schema.type()) {
Schema.Type.BOOLEAN -> value.booleanValue()
Schema.Type.FLOAT64 -> value.floatValue()
Schema.Type.FLOAT32 -> value.doubleValue()
Schema.Type.INT16 -> value.shortValue()
Schema.Type.INT32 -> value.intValue()
Schema.Type.INT64 -> value.longValue()
Schema.Type.FLOAT32 -> value.floatValue()
Schema.Type.FLOAT64 -> value.doubleValue()
Schema.Type.STRING, Schema.Type.BYTES -> value.textValue()
Schema.Type.STRUCT -> {
val struct = Struct(schema)
Expand Down

0 comments on commit ed386e3

Please sign in to comment.