Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-38282: [C++] Implement ReplaceString with the right type signature #38283

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

felipecrv
Copy link
Contributor

@felipecrv felipecrv commented Oct 16, 2023

Rationale for this change

The type signature of ReplaceString should be identical when arrow is compiled with or without ARROW_WITH_RE2.

What changes are included in this PR?

The right signature + delegating to the implementation that takes re2::StringPiece. The conversion should be a no-op when compiled and optimized.

Are these changes tested?

By existing tests and CI checks.

@felipecrv
Copy link
Contributor Author

@raulcd

@felipecrv felipecrv added this to the 14.0.0 milestone Oct 16, 2023
@github-actions github-actions bot added the awaiting review Awaiting review label Oct 16, 2023
@raulcd
Copy link
Member

raulcd commented Oct 16, 2023

@github-actions crossbow submit test-build-vcpkg-win

@github-actions
Copy link

Revision: bae2dfb

Submitted crossbow builds: ursacomputing/crossbow @ actions-f2e7b19e86

Task Status
test-build-vcpkg-win Github Actions

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Oct 16, 2023
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Oct 16, 2023
@pitrou
Copy link
Member

pitrou commented Oct 16, 2023

@raulcd Why are you assigning this to me? Do you want me to review it?

@raulcd
Copy link
Member

raulcd commented Oct 16, 2023

oh! sorry, @pitrou I meant to add you as reviewer not assign it to you

@raulcd raulcd requested a review from pitrou October 16, 2023 15:30
@raulcd raulcd added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Oct 16, 2023
@raulcd raulcd merged commit 6b118bb into apache:main Oct 16, 2023
35 of 36 checks passed
@raulcd raulcd removed the awaiting merge Awaiting merge label Oct 16, 2023
@felipecrv felipecrv deleted the fix_string_view branch October 16, 2023 17:05
raulcd pushed a commit that referenced this pull request Oct 16, 2023
…#38283)

### Rationale for this change

The type signature of `ReplaceString` should be identical when arrow is compiled with or without `ARROW_WITH_RE2`.

### What changes are included in this PR?

The right signature + delegating to the implementation that takes `re2::StringPiece`. The conversion should be a no-op when compiled and optimized.

### Are these changes tested?

By existing tests and CI checks.

* Closes: #38282

Authored-by: Felipe Oliveira Carvalho <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 6b118bb.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

JerAguilon pushed a commit to JerAguilon/arrow that referenced this pull request Oct 23, 2023
…nature (apache#38283)

### Rationale for this change

The type signature of `ReplaceString` should be identical when arrow is compiled with or without `ARROW_WITH_RE2`.

### What changes are included in this PR?

The right signature + delegating to the implementation that takes `re2::StringPiece`. The conversion should be a no-op when compiled and optimized.

### Are these changes tested?

By existing tests and CI checks.

* Closes: apache#38282

Authored-by: Felipe Oliveira Carvalho <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
@felipecrv felipecrv changed the title GH-38282 [C++]: Implement ReplaceString with the right type signature GH-38282: [C++] Implement ReplaceString with the right type signature Oct 24, 2023
loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…nature (apache#38283)

### Rationale for this change

The type signature of `ReplaceString` should be identical when arrow is compiled with or without `ARROW_WITH_RE2`.

### What changes are included in this PR?

The right signature + delegating to the implementation that takes `re2::StringPiece`. The conversion should be a no-op when compiled and optimized.

### Are these changes tested?

By existing tests and CI checks.

* Closes: apache#38282

Authored-by: Felipe Oliveira Carvalho <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…nature (apache#38283)

### Rationale for this change

The type signature of `ReplaceString` should be identical when arrow is compiled with or without `ARROW_WITH_RE2`.

### What changes are included in this PR?

The right signature + delegating to the implementation that takes `re2::StringPiece`. The conversion should be a no-op when compiled and optimized.

### Are these changes tested?

By existing tests and CI checks.

* Closes: apache#38282

Authored-by: Felipe Oliveira Carvalho <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++] Compilation errors when re2::StringPiece is different from std::string_view
3 participants