pitrou commented on PR #35605:
URL: https://github.com/apache/arrow/pull/35605#issuecomment-1549671379

   Rather than complicating the test routine, I'd rather generate data that 
doesn't trigger truncation issues (wherever they might happen):
   ```diff
   diff --git a/cpp/src/parquet/encryption/test_encryption_util.cc 
b/cpp/src/parquet/encryption/test_encryption_util.cc
   index 012712c7b..8193e6525 100644
   --- a/cpp/src/parquet/encryption/test_encryption_util.cc
   +++ b/cpp/src/parquet/encryption/test_encryption_util.cc
   @@ -143,7 +143,7 @@ template <>
    ColumnData<FloatType> GenerateSampleData<FloatType>(int rows) {
      ColumnData<FloatType> float_col;
      for (int i = 0; i < rows; i++) {
   -    float value = static_cast<float>(i) * 1.1f;
   +    float value = static_cast<float>(i) * 1.5f;
        float_col.values.push_back(value);
      }
      return float_col;
   ```


-- 
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