MCPcopy Create free account
hub / github.com/apache/arrow / enable_store_decimal_as_integer

Function enable_store_decimal_as_integer

cpp/src/parquet/properties.h:815–818  ·  view source on GitHub ↗

Allow decimals with 1 <= precision <= 18 to be stored as integers. In Parquet, DECIMAL can be stored in any of the following physical types: - int32: for 1 <= precision <= 9. - int64: for 10 <= precision <= 18. - fixed_len_byte_array: precision is limited by the array size. Length n can store <= floor(log_10(2^(8*n - 1) - 1)) base-10 digits. - binary: precision is unlimited. The minimum number of

Source from the content-addressed store, hash-verified

813 ///
814 /// As a consequence, decimal columns stored in integer types are more compact.
815 Builder* enable_store_decimal_as_integer() {
816 store_decimal_as_integer_ = true;
817 return this;
818 }
819
820 /// Disable decimal logical type with 1 <= precision <= 18 to be stored
821 /// as integer physical type.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected