Skip to content

[Bug]: Mismatch in single-precision float encoding between Java and Go RowCoder implementations  #22629

@TheNeuralBit

Description

@TheNeuralBit

What happened?

Java uses FloatCoder for encoding the FLOAT type, which encodes as a 4 byte single-precision floating point number. Go currently shunts FLOAT through the same path as DOUBLE:

case reflect.Float32, reflect.Float64:
return typeEncoderFieldReflect{encode: func(rv reflect.Value, w io.Writer) error {
return EncodeDouble(rv.Float(), w)
}}, nil

I've currently proposed to make the Python implementation the same as Java: #22626

I think we should do this in Go as well.

Issue Priority

Priority: 2

Issue Component

Component: sdk-go

Metadata

Metadata

Assignees

Labels

P2bugdone & doneIssue has been reviewed after it was closed for verification, followups, etc.go

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions