You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "andishgar (via GitHub)" <gi...@apache.org> on 2026/07/15 17:10:07 UTC

[I] [C++] RunEndEncodedBuilder does not merge consecutive NaN values [arrow]

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] RunEndEncodedBuilder does not merge consecutive NaN values [arrow]

Posted by "andishgar (via GitHub)" <gi...@apache.org>.
andishgar commented on issue #50517:
URL: https://github.com/apache/arrow/issues/50517#issuecomment-5002653916

   @snoopuppy582, thanks for your interest and contribution. I was planning to work on this issue myself, so could you please consider picking up another issue instead? I appreciate your help.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] RunEndEncodedBuilder does not merge consecutive NaN values [arrow]

Posted by "snoopuppy582 (via GitHub)" <gi...@apache.org>.
snoopuppy582 commented on issue #50517:
URL: https://github.com/apache/arrow/issues/50517#issuecomment-5002353776

   take


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] RunEndEncodedBuilder does not merge consecutive NaN values [arrow]

Posted by "snoopuppy582 (via GitHub)" <gi...@apache.org>.
snoopuppy582 commented on issue #50517:
URL: https://github.com/apache/arrow/issues/50517#issuecomment-5002758695

   Understood, thanks for letting me know. I'll step back and pick up another issue.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org