Commit d87bc99
authored
### Rationale for this change
Before, these types would be interpreted as `"object"` type and therefore the `precision` and `scale` attributes of these types would not be preserved in the `"metadata"`
### What changes are included in this PR?
Uses `pa.types.is_decimal` is instead of `isinstance`ing just the `Decimal128Type` to determine a `"decimal"` pandas type
### Are these changes tested?
Yes
### Are there any user-facing changes?
Yes, but should not break compatibility.
* GitHub Issue: #45582
Authored-by: Matthew Roeschke <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
1 parent 6068a0b commit d87bc99
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
601 | 615 | | |
602 | 616 | | |
603 | 617 | | |
| |||
0 commit comments