Skip to content

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

Merged
raulcd merged 1 commit intoapache:mainfrom
felipecrv:fix_string_view
Oct 16, 2023
Merged

GH-38282: [C++] Implement ReplaceString with the right type signature#38283
raulcd merged 1 commit intoapache:mainfrom
felipecrv:fix_string_view

Conversation

@felipecrv
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

raulcd commented Oct 16, 2023

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

@github-actions
Copy link
Copy Markdown

Revision: bae2dfbb850b7d423942f6f28af08b4029ff6a37

Submitted crossbow builds: ursacomputing/crossbow @ actions-f2e7b19e86

Task Status
test-build-vcpkg-win Github Actions

Comment thread cpp/src/arrow/compute/kernels/scalar_string_ascii.cc Outdated
@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
Copy Markdown
Member

pitrou commented Oct 16, 2023

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

@raulcd
Copy link
Copy Markdown
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
@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 <felipekde@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@conbench-apache-arrow
Copy link
Copy Markdown

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.

@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 <felipekde@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
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 <felipekde@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
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