You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/10 15:19:33 UTC

[GitHub] [arrow-rs] atefsawaed opened a new issue, #1532: Incorrect min/max statistics for decimals with byte-array notation

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] alamb closed issue #1532: Incorrect min/max statistics for decimals with byte-array notation

Posted by GitBox <gi...@apache.org>.
alamb closed issue #1532: Incorrect min/max statistics for decimals with byte-array notation
URL: https://github.com/apache/arrow-rs/issues/1532


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org