1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00
Commit Graph

328 Commits

Author SHA1 Message Date
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
Roman Nozdrin
8de9764f84 MCOL-4172 Add support for wide-DECIMAL into statistical aggregate and regr_* UDAF functions
The patch fixes wrong results returned when multiple UDAF exist in projection

aggregate over wide decimal literals now works
2020-11-18 13:52:20 +00:00
Gagan Goel
6aea838360 MCOL-641 Add support for functions (Part 2). 2020-11-18 13:51:55 +00:00
Roman Nozdrin
bd0d5af123 Merge fixes. 2020-11-18 13:51:26 +00:00
Roman Nozdrin
a7fcf39f2a MCOL-641 Fixed group_concat for narrow-DECIMALs. 2020-11-18 13:51:26 +00:00
Roman Nozdrin
3d94ec1568 MCOL-641 Followup on functions commit. 2020-11-18 13:51:25 +00:00
Gagan Goel
cfe35b5c7f MCOL-641 Add support for functions (Part 1). 2020-11-18 13:51:25 +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
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
Roman Nozdrin
97ee1609b2 MCOL-641 Replaced NULL binary constants.
DataConvert::decimalToString, toString, writeIntPart, writeFractionalPart are not templates anymore.
2020-11-18 13:47:44 +00:00
Roman Nozdrin
de85e21c38 MCOL-641 This commit cleans up Row methods and adds couple UT for Row. 2020-11-18 13:47:02 +00:00
drrtuy
98213c0094 MCOL-641 Addition now works for DECIMAL columns with precision > 18. 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
Alexey Antipovsky
b25fee320a Remove variable-length arrays (-Wvla) 2020-11-17 15:03:10 +03:00
Alexey Antipovsky
0e29b0b0f9 Fix -Wtype-limits 2020-11-17 15:03:10 +03:00
David Hall
35c4b66a67 MCOL-4144 Enable lower_case_table_names
Create tables and schemas with lower case name only if the flag is set.
During operations, convert to lowercase in plugin. Byt the time a query gets to ExeMgr, DDLProc etc., everything must be lower case if the flag is set, and undisturbed if not.
2020-09-24 15:21:13 -05:00
David Hall
e44d487011 MCOL-4099 fix range check 2020-08-28 13:46:21 -05:00
David Hall
de3b2452a1 MCOL-4099 allow insert on first or last char 2020-08-28 10:37:57 -05:00
David Hall
791ff2bea4 MCOL-4236 DATE is still returned as INT 2020-08-19 14:35:09 -05:00
David Hall
6075aa337c MCOL-4236 Change ceil(datetime) to return datetime type 2020-08-19 14:29:06 -05:00
Roman Nozdrin
7e868bc588 add dependency for generated header files errorids.h messageids.h patch made by Ben. 2020-07-10 18:38:49 +00:00
Patrick LeBlanc
76cc777204 Merge pull request #1317 from dhall-MariaDB/MCOL-4125
MCOL-4125 CHAR must ignore NULL parameters
2020-06-30 10:56:45 -05:00
David Hall
1d9b9a1bc8 MCOL-4125 CHAR must ignore NULL parameters 2020-06-29 11:41:59 -05:00
Patrick LeBlanc
e94306a8d8 Merge pull request #1308 from dhall-MariaDB/MCOL-4099
MCOL-4099 Fix up first char insertion
2020-06-29 10:34:41 -05:00
Patrick LeBlanc
d840fab5a3 Merge pull request #1309 from dhall-MariaDB/MCOL-4100
MCOL-4100 Use correct collation for certain functions
2020-06-29 10:32:01 -05:00
Gagan Goel
2ba9263df4 Silence -Werror=implicit-fallthrough compiler errors - Patch from Monty.
The patch also fixes some potential bugs due to missing break
statements.
2020-06-26 12:32:57 -04:00
David Hall
3f15ed1303 MCOL-4100 Use correct collation for certain functions
LOCATE, INSTR, STRCMP and FIND_IN_SET
2020-06-24 15:32:22 -05:00
David Hall
9bd4255021 MCOL-4099 Fix up first char insertion 2020-06-24 15:18:03 -05:00
benthompson15
eac7dab096 MCOL-4030: first commit of warning removals unneed const and missing virtual dtors. 2020-06-23 13:51:36 -05:00
Patrick LeBlanc
5f4aaffd5c Merge pull request #1298 from dhall-MariaDB/MCOL-2221
MCOL-2221 Terminate the buffer
2020-06-19 17:38:35 -05:00
David Hall
1499433043 MCOL-2221 Terminate the buffer 2020-06-19 17:33:45 -05:00
Patrick LeBlanc
f2dc44d960 Merge pull request #1295 from dhall-MariaDB/MCOL-2221
MCOL-2221 Reverse with UTF
2020-06-19 14:48:47 -05:00
David Hall
64a4659508 MCOL-2221 Reverse with UTF 2020-06-19 14:07:08 -05:00
David Hall
01c8a63513 MCOL-3536 collation phase 2 2020-06-18 13:54:17 -05:00
David Hall
88f291903e MCOL-3536 trim shouldn't look for MY_CS_BINSORT 2020-06-18 13:54:17 -05:00
David Hall
d0818f2b4e MCOl-3536 Collation phase 2 2020-06-18 13:54:16 -05:00
David Hall
165ae4a6f3 MCOL-3536 Collation 2020-06-18 13:54:16 -05:00
David Hall
de125bac2b MCOL-3536 Collation phase 2 2020-06-18 13:54:16 -05:00
David Hall
f9078efbc6 MCOL-3536 Collation 2020-06-08 17:57:37 -05:00
David Hall
d289c30521 MCOL-3536 Collation 2020-06-08 17:19:07 -05:00
David Hall
938ee6d308 MCOL-3536 collation 2020-06-08 16:09:46 -05:00
David Hall
bacd81d32a MCOL-3536 collation 2020-06-04 16:15:06 -05:00
David Hall
889094a23d MCOL-3536 Collation 2020-06-03 19:43:53 -05:00
David Hall
46668d2607 Merge branch 'develop' into MCOL-3536 2020-06-01 15:09:44 -05:00
Patrick LeBlanc
4bddc92092 MCOL-4010 - fixes compilation errors on x64 w/-Werror
Merged in Sergei's patch.
2020-06-01 12:52:43 -04:00
David Hall
06e50e0926 MCOL-3536 collation 2020-05-26 12:42:11 -05:00
David Hall
11ba12f6ea MCOL-3536 collation 2020-05-19 16:22:44 -05:00
David Hall
8479a87e46 Merge branch 'develop' into MCOL-3536 2020-05-18 16:22:01 -05:00