[C++] Add tests for HalfFloatScalar
Describe the enhancement requested
We have this long-standing TODO in scalar_test.cc that we should be able to address now that we have better float16 support in the library:
https://github.com/apache/arrow/blob/85b4e6d0af00f795a4530896d5c3779f2e95ccea/cpp/src/arrow/scalar_test.cc#L1174
Component(s)
C++
@dinse I don't know if you're interested in this.
I added HalfFloatType to the params for TestRealScalar. Then, the equality comparisons fail for NaN and 0/-0, which I think is related to #46739.
Describe the enhancement requested
We have this long-standing TODO in
scalar_test.ccthat we should be able to address now that we have better float16 support in the library:arrow/cpp/src/arrow/scalar_test.cc
Line 1174 in 85b4e6d
// TODO test HalfFloatScalar
Component(s)
C++
@pitrou While working on this pull request, I realized that there are no such tests for Array, ChunkedArray, RecordBatch, or Table .
This is potentially handled in https://github.com/apache/arrow/pull/46973 (along with the Array tests).