atefsawaed opened a new issue, #1532:
URL: https://github.com/apache/arrow-rs/issues/1532

   **Describe the bug**
   When dealing with decimals built with byte-array notation, the min/max 
comparison should be based on the logical type and not on the physical type.
   Integers that are provided as converted types and without specifying the 
logical type, unsigned comparison should be applied.
   
   **To Reproduce**
   1) Decimals with byte-array notation: 
   a. Create a decimal column (as logical type) with a fixed length byte array 
type.
   b. Write the following values to the column: [2.11, 3.22, 4.33, -5.44]
   2) Integers specified using the converted type only (No logical type 
provided): 
   a. Create an integer column (as converted type) with an unsigned int 
physical type.
   b. Write the following values to the column: [1, 2, 3, -1] 
   
   **Expected behavior**
   1) Reading the statistics of the first row group in the column with the 
decimal type:
   Expected: min=-5.44, max=4.33
   Actual: min=2.11, max=-5.44
   2) Reading the statistics of the first row group in the column with the 
integer:
   Expected: min=-1, max=3
   Actual: min=1, max=-1
   
   
   **Additional context**
   
   


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