Skip to content

[C++] Accept Scalar Types Consistently in RunEndEncodedBuilder::AppendScalar and RunEndEncodedBuilder::AppendScalars #50508

Closed

Description

@andishgar

Describe the enhancement requested

While RunEndEncodedBuilder::AppendScalar accepts the following API usage:

builder.AppendScalar(**MakeScalar(float32(), 0), 3);

// Or
builder.AppendScalar(**MakeScalar(ree_type, *MakeScalar(float32(), 0)), 2);

RunEndEncodedBuilder::AppendScalars, however, only accepts the following style:

builder.AppendScalars({
    *MakeScalar(ree_type, *MakeScalar(float32(), 0)),
    *MakeScalar(ree_type, *MakeScalar(float32(), 0))
});

Component(s)

C++

Activity

  1. Moemenmohamed24 commented on Jul 14, 2026

    @Moemenmohamed24
    Contributor

    Hi @andishgar , I'm working on this enhancement. I'll submit a PR once I have a solution ready.

  2. andishgar commented on Jul 14, 2026

    @andishgar
    ContributorAuthor

    @Moemenmohamed24, thanks for your contribution! However, you must wait for verification of my issue from an Arrow core developer. I will mention two of them, and if one of them verifies it, you can then proceed to send the PR.

  3. andishgar commented on Jul 14, 2026

    @andishgar
    ContributorAuthor

    @kou, @pitrou, could you verify this issue?

  4. Moemenmohamed24 commented on Jul 14, 2026

    @Moemenmohamed24
    Contributor

    @Moemenmohamed24, thanks for your contribution! However, you must wait for verification of my issue from an Arrow core developer. I will mention two of them, and if one of them verifies it, you can then proceed to send the PR.

    @andishgar Alright, I’ve read the contribution guidelines for Arrow; I need to post a "take" comment on the issue. I’ll wait for one of the developers to respond. Thanks a lot.

  5. kou commented on Jul 15, 2026

    @kou
    Member

    This issue says that we should accept the following style too, right?

    builder.AppendScalars({
        *MakeScalar(float32(), 0),
        *MakeScalar(float32(), 0)
    });
  6. andishgar commented on Jul 15, 2026

    @andishgar
    ContributorAuthor

    @kou, yes, I mean exactly the API style you mentioned—is it acceptable?

  7. kou commented on Jul 16, 2026

    @kou
    Member

    Yes. Let's work on this.

  8. Moemenmohamed24 commented on Jul 17, 2026

    @Moemenmohamed24
    Contributor

    @kou , @andishgar . Thanks for the verification, I will start working on this now and submit a PR once it's ready.

  9. added a commit that references this issue on Jul 21, 2026
  10. added 3 commits that reference this issue on Jul 22, 2026
  11. added a commit that references this issue on Jul 27, 2026
  12. added this to the 26.0.0 milestone on Jul 27, 2026
  13. pitrou commented on Jul 27, 2026

    @pitrou
    Member

    Issue resolved by pull request 50584
    #50584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions