westonpace commented on PR #35565:
URL: https://github.com/apache/arrow/pull/35565#issuecomment-1557979223

   I went ahead and added the environment variable too.  Now it should be fully 
configurable.  I tested the environment variable manually:
   
   ```
   ./debug/arrow-acero-plan-test --gtest_filter=ExecPlanExecution.UnalignedInput
   ...
   /home/pace/dev/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.
   ...
   [  PASSED  ] 1 test.
   
   ACERO_ALIGNMENT_HANDLING=abort ./debug/arrow-acero-plan-test 
--gtest_filter=ExecPlanExecution.UnalignedInput
   ...
   /home/pace/dev/arrow/cpp/src/arrow/acero/plan_test.cc:1724: Failure
   Failed
   'DeclarationToStatus(plan)' failed with Invalid: An input buffer was poorly 
aligned and UnalignedBufferHandling is set to kAbort
   /home/pace/dev/arrow/cpp/src/arrow/acero/source_node.cc:155  
HandleUnalignedBuffers(&batch, unaligned_buffer_handling)
   [  FAILED  ] ExecPlanExecution.UnalignedInput (13 ms)
   ...
   
   ACERO_ALIGNMENT_HANDLING=ignore ./debug/arrow-acero-plan-test 
--gtest_filter=ExecPlanExecution.UnalignedInput
   ...
   [  PASSED  ] 1 test.
   
   ACERO_ALIGNMENT_HANDLING=warn ./debug/arrow-acero-plan-test 
--gtest_filter=ExecPlanExecution.UnalignedInput
   ...
   /home/pace/dev/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.
   ...
   [  PASSED  ] 1 test.
   
   ACERO_ALIGNMENT_HANDLING=reallocate ./debug/arrow-acero-plan-test 
--gtest_filter=ExecPlanExecution.UnalignedInput
   ...
   /home/pace/dev/arrow/cpp/src/arrow/acero/plan_test.cc:1725: Failure
   Expected equality of these values:
     initial_bytes_allocated
       Which is: 256
     default_memory_pool()->total_bytes_allocated()
       Which is: 320
   [  FAILED  ] ExecPlanExecution.UnalignedInput (15 ms)
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to