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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]