Skip to content

[R] source_node alignment warning #46178

@jonkeane

Description

@jonkeane

Describe the enhancement requested

When debugging some sanitizer issues, I noticed:

Start test: streaming map_batches into an ExecPlan
  'test-dataset.R:666:3' [success]
  'test-dataset.R:677:3' [success]
  'test-dataset.R:689:3' [success]
  'test-dataset.R:698:3' [success]
/Users/runner/work/crossbow/crossbow/arrow/cpp/src/arrow/acero/source_node.cc:76: An input buffer was poorly aligned.  This could lead to crashes or poor performance on some hardware.  Please ensure that all Acero sources generate aligned buffers, or change the unaligned buffer handling configuration to silence this warning.
  'test-dataset.R:709:3' [success]
End test: streaming map_batches into an ExecPlan

expect_equal(
ds %>%
filter(int > 5) %>%
select(int, lgl) %>%
map_batches(~ .$Take(0)) %>%
arrange(int) %>%
collect(),
tibble(int = c(6, 101), lgl = c(TRUE, TRUE))
)
is the test that the warning is popping up on.

Component(s)

R

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions