Re: [Format] Bounded numbers?

2021-06-22 Thread Micah Kornfield
To add onto Antoine's two points: 1. expressing the semantics (and perhaps enforcing them, e.g. return an >error when an addition gives a result out of bounds) There was a proposed extension type to capture Range/Interval ( https://issues.apache.org/jira/browse/ARROW-12637). I can imagine ha

Re: [Format] Bounded numbers?

2021-06-22 Thread Alessandro Molina
On Tue, Jun 22, 2021 at 12:27 PM Antoine Pitrou wrote: > On Mon, 21 Jun 2021 23:50:29 -0400 > Ying Zhou wrote: > > Hi, > > > > In data people use there are often bounded numbers, mostly integers with > clear and fixed upper and lower bounds but also decimals and floats as well > e.g. test scores

Re: [Format] Bounded numbers?

2021-06-22 Thread Wes McKinney
If you need to use them in an application that is built on Arrow and Parquet, you can certainly implement an Arrow extension type (on top of FixedSizeBinary in Arrow, for example). On Tue, Jun 22, 2021 at 5:27 AM Antoine Pitrou wrote: > > On Mon, 21 Jun 2021 23:50:29 -0400 > Ying Zhou wrote: > >

Re: [Format] Bounded numbers?

2021-06-22 Thread Antoine Pitrou
On Mon, 21 Jun 2021 23:50:29 -0400 Ying Zhou wrote: > Hi, > > In data people use there are often bounded numbers, mostly integers with > clear and fixed upper and lower bounds but also decimals and floats as well > e.g. test scores, numerous codes in older databases, max temperature of a > cit

[Format] Bounded numbers?

2021-06-21 Thread Ying Zhou
Hi, In data people use there are often bounded numbers, mostly integers with clear and fixed upper and lower bounds but also decimals and floats as well e.g. test scores, numerous codes in older databases, max temperature of a city, latitudes, longitudes, numerous IDs etc. I wonder whether we s