andishgar opened a new issue, #50517:
URL: https://github.com/apache/arrow/issues/50517

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The following code:
   
   ```c++
   auto ree_type = run_end_encoded(int32(), float32());
   auto int32_builder = std::make_shared<Int32Builder>(pool_);
   auto float_builder = std::make_shared<FloatBuilder>(pool_);
   RunEndEncodedBuilder builder(pool_, int32_builder, float_builder, ree_type);
   ASSERT_OK(builder.AppendScalar(**MakeScalar(float32(), std::nanf("0")), 3));
   ASSERT_OK(builder.AppendScalar(**MakeScalar(float32(), std::nanf("0")), 3));
   ASSERT_OK_AND_ASSIGN(auto array, builder.Finish());
   ARROW_LOGGER_INFO("", array->ToString());
   ```
   produces the following output. This indicates that consecutive NaN values 
are treated as distinct values instead of being merged into a single run:
   
   ```
   -- run_ends:
     [
       3,
       6
     ]
   -- values:
     [
       nan,
       nan
     ]
   ```
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to