Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jun 8, 2025

Which issue does this PR close?

Rationale for this change

I want to eventually remove gc_string_view but currently the unit tests are in terms of that function

What changes are included in this PR?

Rewrite tests to be in terms of coalesce instead

Also,

  1. Add additional coverage for the issue we saw in Revert "Improve coalesce and concat performance for views (#7614)" #7623
  2. Add add coverage for the case where there are data buffers in the view, but they are not referenced by any view Revert "Revert "Improve coalesce and concat performance for views… #7625 (comment)

Codecov of this module is now 100%

Are there any user-facing changes?

If there are user-facing changes then we may require documentation to be updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 8, 2025
}

#[test]
fn test_empty_schema() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of this PR is to add direct coverage for coalesceing StringViewArrays rather than testing gc_string_view_array directly

That way I can change the internal implementation of coalesce and still maintain test coverage

.unwrap()
}

#[test]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are all rewritten in terms of Test and coalsece

@alamb alamb changed the title Improve coalesce tests Improve coalesce kernel tests Jun 8, 2025
@alamb alamb merged commit 23e18bc into apache:main Jun 9, 2025
27 checks passed
@alamb
Copy link
Contributor Author

alamb commented Jun 9, 2025

Thanks for the review @Dandandan

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

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants