Commits


Phillip Cloud authored and Wes McKinney committed b241eb699b6
ARROW-1839/ARROW-1871: [C++/Python] Add Decimal Parquet Read/Write Tests Author: Phillip Cloud <cpcloud@gmail.com> Author: Wes McKinney <wes.mckinney@twosigma.com> Closes #1335 from cpcloud/ARROW-1839 and squashes the following commits: 496ec796 [Wes McKinney] Make RescaleDecimal instead an instance method of Decimal128 878d9a1d [Phillip Cloud] Fix namespace 816ff42a [Phillip Cloud] Use IsPyInteger 41c447fb [Wes McKinney] Add missing license header 3b91e550 [Wes McKinney] Rename Rescale to RescaleDecimal accc653d [Wes McKinney] Make AppendItem methods non-virtual for CRTP inlining bbc14cf4 [Phillip Cloud] int64_t for looping b6f8592f [Phillip Cloud] Generate a column for different scales afe4396a [Phillip Cloud] docstring ade030e5 [Phillip Cloud] Clarify randdecimal contract 752e905b [Phillip Cloud] Use Python C API instead of string parsing 115fbc96 [Phillip Cloud] Remove iostream include 1f6339d8 [Phillip Cloud] Clean up testing a4b1d6bb [Phillip Cloud] Add randdecimal to util 07c356ac [Phillip Cloud] Remove inference from python objects c7637f19 [Phillip Cloud] Refactor test dba8a0d9 [Phillip Cloud] Add docs 4296b5c9 [Phillip Cloud] Infer the scale by looking at every Python decimal object 98e319af [Phillip Cloud] Remove debugging 2d02b44f [Phillip Cloud] More style fixes f235ef42 [Phillip Cloud] Style fixes 97c0a6b5 [Phillip Cloud] Make sure we assign to our out variable d4a32361 [Phillip Cloud] Move rescaling to decimal.h/cc 891137fd [Phillip Cloud] Formatting deea4711 [Phillip Cloud] Refactor rescaling functionality 108e8914 [Phillip Cloud] Format c28e2c17 [Phillip Cloud] Remove test cbb2ed76 [Phillip Cloud] Rewrite infer precision and scale from python 7a2de887 [Phillip Cloud] Add rescaling b2ad3b7f [Phillip Cloud] Rename e0d6080a [Phillip Cloud] Formatting fc5412a3 [Phillip Cloud] Checkpoint [ci skip] cf3a5a26 [Phillip Cloud] Test multiple precisions and scales 853fced9 [Phillip Cloud] Make the parquet read/write from python test more robust ff6eccf8 [Phillip Cloud] Add c++ formatting test for small number and small scale/precision cd38abd4 [Phillip Cloud] Add test util 45eafe73 [Phillip Cloud] Add better test d7a0aab4 [Phillip Cloud] Make sure we do not override the inferred type eff7d2b5 [Phillip Cloud] Use array syntax 801626b4 [Phillip Cloud] Use FormatValue e519c25f [Phillip Cloud] Add Decimal parquet tests