This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-12441-6b18e2db3dfe34b54d916fd7ebf5fca5b8e07165 in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
commit 6ff1facb59dcd079bd7a53ce80e42ca531c67c00 Author: benjibun <[email protected]> AuthorDate: Tue Nov 24 07:56:15 2026 +0000 Gate the UTF-8 boundary helper on the Arrow feature (#12441) # Which issue does this PR close? Follow-up to #11144. No issue to close. # Rationale for this change When `arrow` is disabled Parquet still compiles `check_utf8_value_start` even though all its callers are in the Arrow reader. This leaves an unused function and fails checks that deny warnings. # What changes are included in this PR? Gate the helper on the same `arrow` feature as its callers. # Are these changes tested? This is a compile-time change covered by feature checks with and without `arrow`. The existing invalid-UTF8 reader tests also pass with all features enabled. # Are there any significant user-facing changes? No breaking API changes. # AI usage disclosure Codex assisted in the implementation by generating the feature gate. It also helped investigate and verify the fix and contributed to the review and this PR description. Co-authored-by: benjibunbun <[email protected]> --- parquet/src/util/utf8.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/parquet/src/util/utf8.rs b/parquet/src/util/utf8.rs index 9e8526b0d0..f7e1283b10 100644 --- a/parquet/src/util/utf8.rs +++ b/parquet/src/util/utf8.rs @@ -47,6 +47,7 @@ pub fn check_valid_utf8(val: &[u8]) -> Result<()> { /// /// [`check_valid_utf8`] over values stored back to back misses a character /// split across two of them, so each value's start must be checked as well. +#[cfg(feature = "arrow")] #[inline(always)] pub(crate) fn check_utf8_value_start(value: &[u8]) -> Result<()> { match value.first() {
