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/22 20:17:40 UTC

[GitHub] [arrow-rs] sunchao opened a new issue, #1606: Parquet schema should allow scale == precision for decimal type

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

   **Describe the bug**
   
   Currently when building a Parquet primitive type, the `PrimitiveTypeBuilder` won't allow cases such as `Decimal(1, 1)`:
   
   ```rust
           if self.scale >= self.precision {
               return Err(general_err!(
               "Invalid DECIMAL: scale ({}) cannot be greater than or equal to precision \
                ({})",
               self.scale,
               self.precision
           ));
   ```
   
   However this should be a valid case.
   
   **To Reproduce**
   Use `PrimitiveTypeBuilder` to construct a decimal type with the same scale and precision.
   
   **Expected behavior**
   The above case should be allowed.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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] nevi-me closed issue #1606: Parquet schema should allow scale == precision for decimal type

Posted by GitBox <gi...@apache.org>.
nevi-me closed issue #1606: Parquet schema should allow scale == precision for decimal type
URL: https://github.com/apache/arrow-rs/issues/1606


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