Gagan Goel
a159f8a0b6
MCOL-4188 Regression fixes for MCOL-641.
...
1. Add wide decimal support to AggregateColumn::evaluate
and TreeNode::getDecimalVal().
2. Use the pm aggregate attributes to determine um aggregate
attributes in TupleAggregateStep::prep2PhasesAggregate.
2020-11-30 13:49:05 -05:00
Roman Nozdrin
494bde61e1
MCOL-4409 Moved static Decimal conversion methods into VDecimal class
...
MCOL-4409 This patch combines VDecimal and Decimal and makes
IDB_Decimal an alias for the result class
MCOL-4409 More boilerplate reduction in Func_mod
Removed couple TSInt128::toType() methods
2020-11-30 12:08:52 +00:00
Gagan Goel
995cadef2d
MCOL-641 Fix alter table add wide decimal column.
...
This patch also removes CalpontSystemCatalog::BINARY and
ddlpackage::DDL_BINARY that were added during the initial
stages of the work on MCOL-641.
2020-11-20 19:49:54 -05:00
Roman Nozdrin
178be69bc4
MCOL-4394 __float128 related code had been moved into a separate file
...
Trim to double and to long double conversions for Decimal
2020-11-19 12:08:18 +00:00
Roman Nozdrin
aa44bca473
A pack of fixes for compilation errors and warnings for all platforms
...
Add libdatatypes.so into debian packaging
2020-11-19 10:21:45 +00:00
Roman Nozdrin
58495d0d2f
MCOL-4387 Convert dataconvert::decimalToString() into VDecimal and TSInt128 methods
2020-11-18 13:53:16 +00:00
Gagan Goel
007b8a5082
MCOL-4188 Fix regressions in CEIL()/CHAR() for narrow decimals.
...
In addition, a regression in a WHERE clause with a WF field
as the LHS and an addition operation on two WF fields on the RHS
is also fixed. The issue was SimpleColumn::getDecimalVal() was
setting precision = 19, with the value of one of the operands of the
addition operation being set in VDecimal::value instead of
VDecimal::s128Value. addSubtractExecute() in mcs_decimal.cpp makes the
assumption that if precision > 18 and precision <= 38, we need to
fetch the wide s128Value, not the narrow value field. So we are
fixing the precision set in SimpleColumn::getDecimalVal().
2020-11-18 13:53:16 +00:00
Roman Nozdrin
3eb26c0d4a
MCOL-4313 Introduced TSInt128 that is a storage class for int128
...
Removed uint128 from joblist/lbidlist.*
Another toString() method for wide-decimal that is EMPTY/NULL aware
Unified decimal processing in WF functions
Fixed a potential issue in EqualCompData::operator() for
wide-decimal processing
Fixed some signedness warnings
2020-11-18 13:53:15 +00:00
Alexander Barkov
129d5b5a0f
MCOL-4174 Review/refactor frontend/connector code
2020-11-18 13:53:15 +00:00
Gagan Goel
6aea838360
MCOL-641 Add support for functions (Part 2).
2020-11-18 13:51:55 +00:00
Gagan Goel
cfe35b5c7f
MCOL-641 Add support for functions (Part 1).
2020-11-18 13:51:25 +00:00
Gagan Goel
74b64eb4f1
MCOL-641 1. Add support for int128_t in ParsedColumnFilter.
...
2. Set Decimal precision in SimpleColumn::evaluate().
3. Add support for int128_t in ConstantColumn.
4. Set IDB_Decimal::s128Value in buildDecimalColumn().
5. Use width 16 as first if predicate for branching based on decimal width.
2020-11-18 13:47:45 +00:00
Roman Nozdrin
b09f3088ca
MCOL-641 Initial version of Math operations for wide decimal.
2020-11-18 13:47:44 +00:00
Roman Nozdrin
2e8e7d52c3
Renamed datatypes/decimal.* into csdecimal to avoid collision with MDB.
2020-11-18 13:47:44 +00:00
Roman Nozdrin
238386bf63
MCOL-641 Replaced IDB_Decima.__v union with int128_t attribute.
...
Moved all tests into ./test
Introduced ./datatypes directory
2020-11-18 13:47:44 +00:00
drrtuy
98213c0094
MCOL-641 Addition now works for DECIMAL columns with precision > 18.
2020-11-18 13:47:01 +00:00
drrtuy
54c152d6c8
MCOL-641 This commit introduces templates for DataConvert and RowGroup methods.
2020-11-18 13:47:01 +00:00
Gagan Goel
32f6167067
MCOL-641 Work of Ivan Zuniga on basic read and write support for Binary16
2020-11-18 13:47:00 +00:00
David Hall
06e50e0926
MCOL-3536 collation
2020-05-26 12:42:11 -05:00
David Hall
1f3d1e6fd6
MCOL-3536 collation
2020-05-14 16:02:49 -05:00
David Hall
d051482e94
MCOL-3663 revert to using posix regex for LIKE
2020-02-10 13:37:42 -06:00
Andrew Hutchings
49994f7bc3
Fix warnings found in DEBUG combined build
...
Fixes:
* Irrelevant where conditions
* Irrelevant const
* A potential infinite loop in treenode
* Bad implicit case fallthroughs
* Explicit markings for required case fallthroughs
* Unused variables
* Unused function
Also disabled some warnings for now which we should fix later.
2019-12-10 16:33:08 +00:00
Andrew Hutchings
70b3aa3159
Merge branch 'develop-1.2' into develop-merge-up-20190924-2
2019-09-24 14:17:57 +01:00
Patrick LeBlanc
a09a9d5d0f
Mass substitution 'Corporaton' -> 'Corporation'
2019-08-07 14:43:25 -05:00
David Hall
78eb20ef4e
MCOL-1559 remove the #define POSIX_REGEX and thus the use of regexec. Fix up the code changing #ifdef _MSC_VER to #ifdef POSIX_REGEX, where it applies to regexec.
2019-07-24 12:59:59 -05:00
Andrew Hutchings
5e4f1b9933
Merge branch 'develop' into MCOL-265
2019-06-10 13:58:03 +01:00
Andrew Hutchings
020b211bb7
Merge branch 'develop-1.2' into develop-merge-up-20190514
2019-05-14 13:58:33 +01:00
Roman Nozdrin
9dc33c4e82
Another try to cope with warnings under gcc 8.2.
2019-04-29 11:05:03 +03:00
David Mott
4b9d046c6e
Fully resolve potentially ambiguous symbols by removing using namespace statements from headers which have a cascading effect. This causes potential behavior changes when switching to c++11 since symbols can be exported from std and boost while both have been imported into the global namespace.
2019-04-29 01:21:15 -05:00
Gagan Goel
e89d1ac3cf
MCOL-265 Add support for TIMESTAMP data type
2019-04-23 00:00:09 -04:00
David Mott
67880c2319
Fully qualify ambiguous isnan() with std::
2019-04-17 17:28:47 -05:00
David Hall
b7606139d7
MCOL-1822 Typo repair. Should be long double, not double
2019-03-05 09:45:34 -06:00
David Hall
3f2c753947
MCOL-1822-c final checkin
2019-03-05 09:33:39 -06:00
David Hall
a2aa4b8479
MCOL-1822 Intermediate checkin. DISTINCT not working.
2019-02-25 14:54:46 -06:00
David Hall
c5b9ae11e5
MCOL-1822 add LONG DOUBLE support
2019-01-29 09:55:43 -06:00
Andrew Hutchings
443a2867c4
MCOL-1385 Initial 10.3 support
2018-08-02 14:55:01 +01:00
Andrew Hutchings
c40903de9b
MCOL-392 Apply astyle
...
Make this branch apply our style guidelines
2018-05-01 09:52:26 +01:00
Andrew Hutchings
dfc351b730
MCOL-392 fix negative zero hours
...
Also fix some functions that were not behaving correctly
2018-04-30 22:08:10 +01:00
Andrew Hutchings
957dc44615
MCOL-392 Function fixes
...
Fixes most of the functions in funcexp so that time and datetime's
microseconds are handled correctly
2018-04-30 09:42:41 +01:00
Andrew Hutchings
3c1ebd8b94
MCOL-392 Add initial TIME datatype support
2018-04-30 09:42:41 +01:00
Andrew Hutchings
01446d1e22
Reformat all code to coding standard
2017-10-26 17:18:17 +01:00
Andrew Hutchings
e9db44424c
MCOL-642 Separate TEXT from BLOB
...
* TEXT and BLOB now have separate identifiers internally
* TEXT columns are identified as such in system catalog
* cpimport only requires hex input for BLOB, not TEXT
2017-03-27 21:36:27 +01:00
Andrew Hutchings
093aa377e5
MCOL-267 multi-block support for PrimProc and bulk
...
* Adds multi-block bulk write support
* Adds PrimProc multi-block read support
* Allows the functions length() and hex() to work with BLOB columns
2017-03-20 18:32:24 +00:00
Andrew Hutchings
650dba47fc
Fix build issues
...
Fix jemalloc issues and a namespace issue
2016-09-23 17:28:41 -05:00
David Hall
f20345f798
MCOL-290 - Fix spurious typo
2016-09-23 09:18:28 -05:00
David Hall
afab801b5f
MCOL-299 Change the getStrVal() for float and double to match the results of the mariadb display string for same.
2016-09-22 09:34:13 -05:00
david hill
f6afc42dd0
the begginning
2016-01-06 14:08:59 -06:00