GitHub user hakanmemisoglu reopened a pull request:
https://github.com/apache/incubator-quickstep/pull/37
DO NOT MERGE: QUICKSTEP-6: Decimal type
- This request adds the simple Decimal type which represents fixed
precision numbers.
- In practice, Decimal type is used with 2 arguments: precision and scale.
- Precision is the number of digits (base 10) that the type can show.
- Scale is the number of digits (base 10) after point.
- For example, Decimal(6, 2) can represent numbers from -9999.99 to
+9999.99.
- The type does not accept any precision and scale argument for now. It
takes default values 18 for precision and 2 for scale. It is chosen since
precision 18 is the limit that 64 bits can represent safely, and scale 2 is
what TPCH requires.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/incubator-quickstep decimal-type
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-quickstep/pull/37.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #37
----
commit 5aa559310b017f03e9ef648980f47198ba2e6e9c
Author: Hakan Memisoglu <[email protected]>
Date: 2016-05-31T18:14:42Z
New type for fixed precision number: Decimal.
commit d71599fd124d9ddaf97150b52c7e701e4bcd121b
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-14T15:09:25Z
New changes.
commit 400d268b9d28e331707cc58094b9f0decc415d5c
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-15T18:16:18Z
Make scale fixed to 10^2.
commit 4358b6eddd63016f665f0774833ce1d0b81cbee5
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-15T21:23:24Z
Introduced comparator functors for Decimal type.
commit 6b11fe0c214fc3d3d849f0916ba67f40fb37ffdd
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-16T17:03:13Z
Fixed bug where the wrong operator is used.
commit 5646d0320170806cd1f9f515b7793ee91fdfde33
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-17T14:00:17Z
Added dependency in CMakeLists.txt.
commit 18f526050a7109445ce289921399db179c122bec
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-17T18:21:56Z
Additional changes to fix compile errors and documentation is added.
commit 5815103db00e978c156881d1f139244a28fa932d
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-17T21:06:23Z
First part of the unit test.
commit f28c46ecc9450ac01989df0082a8d74a24724b66
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T16:35:01Z
Adding numeric cast for Decimal type.
commit 169c1f37cfeb1d46d86af1f85cbc703215d22521
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T16:45:58Z
Include DecimalType in NumericCastOperation.
commit 76673f5a1ecd79c54b42805d66c60fe81dc6709f
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T16:54:39Z
Added static cast for int.
commit 7e668513fa9e064536d7f562eee3403597b63c7d
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T17:18:47Z
Added static cast.
commit 85b0694b0a3479add75ae5a0d4e379dbd35d4621
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T18:53:00Z
DecimalLit conversions.
commit 8bb4c61ef0e9a9ca44dd29cb6566ce160d4bbe54
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T18:58:39Z
DecimalLit constructors.
commit 88306cbdb9af99221fd6036f7307b96515abed39
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T19:03:11Z
default constructor for DecimalLit.
commit ec37551d835781046c2ce24c06eaf1a86fb84816
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T19:08:25Z
DecimalLit constructors.
commit 85dab23c79aa787f72dc98b75d729495180b937b
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T19:20:44Z
Fix for cast issue.
commit 889c4805e661939a4881a1c096e2a70a494c1212
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T19:37:22Z
Fix in vector copy elision.
commit 0acaf423a9fdfaf1d140252f55d824cc7457db65
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T21:24:48Z
New fixes.
commit aebb4a3bd2d1bd98c77e7a3db03888db0d931ffb
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-20T21:52:27Z
Operators are updated.
commit cf33c724a0b16168fd4f104bf166bc19abafbe46
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-21T20:14:30Z
Changed proto decsription.
commit 2d17109453c64b96d38fcfc8af77bfc1b44a7582
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-23T17:44:51Z
The changes to prevent errors from linter.
commit 0a3e43f2941f73e5654347fd5b70d87b0a9df6e4
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-23T18:31:09Z
Updated preprocessed lexer and parser files.
commit 21e912c931aa110d3289b7a40e8d8a4ea6499751
Author: Hakan Memisoglu <[email protected]>
Date: 2016-06-23T19:51:51Z
Use constructor instead of builder in unit test.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---