This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 222bfb712e GH-46178: [R] source_node alignment warning (#50120)
222bfb712e is described below
commit 222bfb712efc986c4c79e794273f73b8f7e61386
Author: Nic Crane <[email protected]>
AuthorDate: Mon Jun 8 15:23:50 2026 +0200
GH-46178: [R] source_node alignment warning (#50120)
### Rationale for this change
There was a warning about unaligned nodes
### What changes are included in this PR?
Make them get aligned
### Are these changes tested?
Nah, but we should see a lack of warning on CI
### Are there any user-facing changes?
Nope
* GitHub Issue: #46178
Authored-by: Nic Crane <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
---
r/src/compute-exec.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/r/src/compute-exec.cpp b/r/src/compute-exec.cpp
index 9912210a14..c1447bfe74 100644
--- a/r/src/compute-exec.cpp
+++ b/r/src/compute-exec.cpp
@@ -48,8 +48,10 @@ std::shared_ptr<acero::ExecPlan> ExecPlan_create(bool
use_threads) {
// TODO(weston) using gc_context() in this way is deprecated. Once ordering
has
// been added we can probably entirely remove all reference to ExecPlan from
R
// in favor of DeclarationToXyz
- auto plan =
- ValueOrStop(acero::ExecPlan::Make(use_threads ? &threaded_context :
gc_context()));
+ acero::QueryOptions query_options;
+ query_options.unaligned_buffer_handling =
acero::UnalignedBufferHandling::kReallocate;
+ auto plan = ValueOrStop(acero::ExecPlan::Make(
+ std::move(query_options), use_threads ? &threaded_context :
gc_context()));
return plan;
}