Skip to content

RunEndEncodeTableColumns doesn't change the table's schema type to reflect that the column is run-end-encoded #45534

Closed

Description

@lesterfan

Describe the bug, including details regarding any error messages, version, and platform.

This is a bug report regarding the RunEndEncodeTableColumns gtest util.

In the current main branch, the RunEndEncodeTableColumns gtest util returns a table like

ree_table = col: string
----
col:
  [

    -- run_ends:
      [
        1,
        2,
        3,
        4
      ]
    -- values:
      [
        "a",
        "b",
        "c",
        "d"
      ]
  ]

whereas the expected behavior is to return a table like

ree_table = col: run_end_encoded<run_ends: int32, values: string>
  child 0, run_ends: int32 not null
  child 1, values: string
----
col:
  [

    -- run_ends:
      [
        1,
        2,
        3,
        4
      ]
    -- values:
      [
        "a",
        "b",
        "c",
        "d"
      ]
  ]

Component(s)

C++, Parquet

Activity

  1. lesterfan commented on Feb 13, 2025

    @lesterfan
    ContributorAuthor

    I put up #45535 to change this function to also modify the schema type pending further discussion here.

  2. lesterfan commented on Apr 10, 2025

    @lesterfan
    ContributorAuthor

    Thinking about this some more, I'm more convinced that this is a bug rather than a user error. Additionally, this affects more than just internal arrow since the function is exported to be used as part of unit tests more generally. I edited the original issue to reflect this.

  3. added a commit that references this issue on Apr 11, 2025
  4. added this to the 21.0.0 milestone on Apr 11, 2025
  5. mapleFU commented on Apr 11, 2025

    @mapleFU
    Member

    Issue resolved by pull request 45535
    #45535

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions