1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-10-23 21:49:05 +03:00
Commit Graph

3977 Commits

Author SHA1 Message Date
bulatz
dcb7a5aed5 Slightly optimized writeArray() and findMinMaxArray()m by moving bool params into template headers 2020-03-19 15:57:50 +03:00
bulatz
350922a019 findMinMaxArray(): last piece of "vertical" column filtering 2020-03-18 13:04:16 +03:00
bulatz
c969513051 Support for ONE/NONE_OF_VALUES_IN_SET modes in the fast vertical filter 2020-03-17 20:56:42 +03:00
bulatz
3f8b850f4f processArray(): proper handling of NULL values (but may be slow( 2020-03-17 17:00:07 +03:00
bulatz
a7f62671eb Added conditions to call it from filterColumnData(). Updating of out->RidFlags 2020-03-17 14:41:49 +03:00
bulatz
8a0e834837 Choose initial filterArray[i] value depending on the operation 2020-03-15 22:43:38 +03:00
bulatz
fb55ef6f84 writeArray() - counting bytes/values written; applyFilterElement(): COMPARE_NIL operation support 2020-03-15 14:45:56 +03:00
bulatz
6dc67448b7 applyFilterElement() implementing all 10 (data types) * 6 (comparisons) * 3 (combiners) variants of code evaluating one filter element over the entire column 2020-03-15 00:49:28 +03:00
bulatz
8834889ff4 readArray/writeArray processing entire column contents at once 2020-03-13 22:32:11 +03:00
bulatz
4add5f3199 simd_codegen.lua, first version: sse/avx, signed ints only 2020-03-12 19:02:08 +03:00
bulatz
609c924499 Added UNLIKELY; renamed W to COL_WIDTH and isNull to IS_NULL 2020-03-12 10:20:16 +03:00
bulatz
ee77738187 Added ONE/NONE_OF_VALUES_IN_ARRAY column filtering modes 2020-03-07 07:03:54 +03:00
bulatz
083b7541f7 Splitted code for ONE_OF_VALUES_IN_SET and NONE_OF_VALUES_IN_SET. Simplified PrimitiveProcessor constructor 2020-03-06 14:28:45 +03:00
bulatz
58f8e8d695 XOR_COMPARISONS mode for BOP_XOR. Fixed bug in choosing *_VALUES_IN_SET mode 2020-03-06 14:15:52 +03:00
bulatz
c8dde4a359 ColumnFilterMode: ONE_OF_VALUES_IN_SET and NONE_OF_VALUES_IN_SET instead of UNORDERED_SET+BOP_AND/BOP_OR 2020-03-06 04:32:53 +03:00
bulatz
8d6bbabed0 Speed up matchingColValue() by dispatching into five ColumnFilterMode-s 2020-03-06 03:56:38 +03:00
bulatz
4ed43ee405 colCompare() now compares FLOATs directly 2020-03-06 01:25:45 +03:00
bulatz
402e7e0ed5 Check for ALT_NULL_VALUE only for KIND_TEXT column types. Fixed checking whether UNORDERED_SET mode is appropriate 2020-03-05 15:28:00 +03:00
bulatz
89c4650486 Separate loops for BOP_OR and BOP_AND in matchingColValue() 2020-03-04 09:38:22 +03:00
bulatz
6f0812d5a3 isNullValue() that don't check altnull when W<8 2020-03-04 09:28:00 +03:00
bulatz
4017f6b6a3 A bit more local vars in filterColumnData() 2020-03-03 18:20:35 +03:00
bulatz
c7fe8327a5 Reorganized nextColValue() 2020-03-03 14:18:17 +03:00
bulatz
90391fa2b1 Precompute filter results for EMPTY and NULL values 2020-03-02 19:46:26 +03:00
bulatz
9e0e35a8b0 inNull made a template param for colCompare/matchingColValue. The code was split into several sections combining functions with similar purpose 2020-03-02 13:09:16 +03:00
bulatz
55cd1a5459 isNull -> getNullValue + getAlternativeNullValue; get rid of DataType dispatching in the filter inner loop 2020-02-29 14:15:15 +03:00
bulatz
0092ac7c14 uint64_t getEmptyValue<W>(type) 2020-02-28 16:28:42 +03:00
bulatz
4d79ac8047 Dispatch colCompare/matchingColValue/findMinMax by KIND+WIDTH, so we no more have runtime dispatching anywhere except for isNull/isEmpty/cmOp 2020-02-28 15:57:09 +03:00
bulatz
7fc37c1f3a Added template parameter KIND (dispatching for TEXT/FLOAT types) 2020-02-28 01:31:30 +03:00
bulatz
ff4afcd516 Removed CalpontSystemCatalog::BLOB from list of string-like-MinMax types; Fixed static/inline specifiers 2020-02-27 22:54:09 +03:00
bulatz
ba954ad6ff Fixed bug when in->NOPS==0 2020-02-26 13:11:45 +03:00
bulatz
7c35985cda std::sort(ridArray); Compute W,isColUnsigned,colWideType from T parameter; removed generic isNullVal() 2020-02-26 09:07:07 +03:00
bulatz
57e7ac9a94 Separated matchingColValue(), markEvent lambda, ridArray computed prior to dispatching 2020-02-24 12:23:10 +03:00
bulatz
1239224bfe Type-dispatched writeColValue() and ridSize/srcArray/srcSize vars 2020-02-23 00:19:00 +03:00
bulatz
d962bd56b4 Simplified nextColValue() 2020-02-22 19:38:38 +03:00
bulatz
c417c0fc7e Single nextColValue() serving all types 2020-02-22 04:47:13 +03:00
bulatz
12ac2e6cba Type-dispatched PrimitiveProcessor::p_Col with changed on-the-fly compilation
On-the-fly compilation now made by calling parseColumnFilter_T. This means that it may switch into UNORDERED_SET mode, unlike the original on-the-fly compiler.
2020-02-22 02:43:26 +03:00
bulatz
4c58586b85 Removed piles of unused code 2020-02-22 00:06:07 +03:00
bulatz
25128d053a Type-dispatched, refactored parseColumnFilter_T 2020-02-21 18:01:33 +03:00
Patrick LeBlanc
ebd8448fdb Merge pull request #1055 from pleblanc1976/develop-1.4
Fixed a problem with the fix for MCOL-3769 & the default sql_mode.
columnstore-1.4.3-1
2020-02-18 11:08:30 -06:00
Patrick LeBlanc
d5ec634136 Fixed a problem with the fix for MCOL-3769 & the default sql_mode.
It appears that STRICT_TRANS_TABLE treats these warnings as if they are
errors.  Commenting out the warnings for now.
2020-02-18 11:42:29 -05:00
Patrick LeBlanc
1a65d341ca Merge pull request #1054 from drrtuy/MCOL-3769_2
MCOL-3769 This commit divides create_SH in two parts: before rewr…
2020-02-17 12:45:40 -06:00
Roman Nozdrin
437e8650a7 MCOL-3769 This commit divides create_SH in two parts: before rewrites and
after rewrites. We can safely fallback from SH to DH and table mode from
    'before rewrites' part. We also returns meaningful warning.
2020-02-17 17:39:43 +00:00
Patrick LeBlanc
a34f3e90e9 Merge pull request #1053 from LinuxJedi/mariadb-systemctl
MCOL-3793 Fix UM ACTIVE / DEGRADED flip-flop
2020-02-17 08:12:38 -06:00
Patrick LeBlanc
47039eb0ad Merge pull request #1052 from mariadb-corporation/MCOL-3791
MCOL-3791 This patch implicitly enables disk space preallocation for …
2020-02-17 08:06:22 -06:00
Andrew Hutchings
9605c951dc MCOL-3793 Fix UM ACTIVE / DEGRADED flip-flop
OAM mysqld status check was recording the pid of mysqld but this was
being masked by another variable. So on every ACTIVE check it would
flip to DEGRADED and on every DEGRADED check it would flip to ACTIVE.

Variable masking is now removed. Also fixed a typo in the systemd check.
2020-02-17 09:53:02 +00:00
Roman Nozdrin
e7703f44dd MCOL-3791 This patch implicitly enables disk space preallocation for non-compressed
abbreviated extents as it worked before MCOL-498.
2020-02-16 07:13:34 +00:00
Patrick LeBlanc
815a1d8acb Merge pull request #1051 from pleblanc1976/develop-1.4
Revert "Merge pull request #1046 from drrtuy/MCOL-3769"
2020-02-14 17:26:53 -06:00
Patrick LeBlanc
ae515a36b8 Revert "Merge pull request #1046 from drrtuy/MCOL-3769"
This has an uninit'd var warning from the compiler.  It fixes one test
and breaks 2 others in test001.

This reverts commit cf668897ef, reversing
changes made to 25084d0020.
2020-02-14 18:23:54 -05:00
Patrick LeBlanc
eb60168cba Merge pull request #1050 from tntnatbry/fix-fieldlength-const
Use const_cast to assign to field_length due to change in server 10.4 commit 1394216
2020-02-14 08:57:19 -06:00
Gagan Goel
6d98de3922 Use const_cast to assign to field_length due to
change in server 10.4 commit 1394216e3db67152a1356fddd8ddcd563b4f38c3
2020-02-14 01:00:50 +00:00