1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-01 06:21:41 +03:00
Commit Graph

128 Commits

Author SHA1 Message Date
98abf95eae MCOL-3991 MCS is now single package and properly uninstalls 2020-05-12 13:36:24 +00:00
48846b350a MCOL-3839 Fix for different window frames. Optimize count(*) with window function 2020-04-27 21:21:29 +00:00
cc52467c42 MCOL-3839 Count as window function with constants fix 2020-04-27 16:17:12 +00:00
08d9d40c6a MCOL-3839 Update fix to work with NULLs and other constants 2020-04-24 20:16:12 +00:00
06312f4a3f MCOL-3839 Count as window function doesn't work with NULLs' 2020-04-24 16:05:08 +00:00
914fa570fa Merge pull request #970 from LinuxJedi/fix-warnings
Fix warnings found in DEBUG combined build
2019-12-10 19:26:20 +02:00
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
ba4053bf2b Use signed int64_t for comparing two TIME values in the order by clause. 2019-12-06 14:31:48 +00:00
7489d0bfd0 MCOL-3625 Rename packages
Rename packages to MariaDB-columnstore-engine, MariaDB-columnstore-libs
and MariaDB-columnstore-platform.

Also add the "columnstore-" prefix the the components so that MariaDB's
packaging system understands then and add a line to include them in
MariaDB's packaging.

In addition
* Fix S3 building for dist source build
* Fix Debian 10 dependency issue
* Fix git handling for dist builds
* Add support for MariaDB's RPM building
* Use MariaDB's PCRE and readline
* Removes a few dead files
* Fix Boost noncopyable includes
2019-12-04 11:04:39 +00:00
0696696cf6 MCOL-894 Upmerged post review changes.
Raised the default for orderby threads from 4 to 16.
    Removed if LIMIT check block in makeVtableModeSteps().
    Removed a duplicate of TimeCompare class and methods.

MCOL-3536 Upmerged the change.

MCOL-894 Post review changes.
    Uncomment if LIMIT check block in makeVtableModeSteps().

    TupleAnnexStep dtor now uses vector::size() as a boundary.

    Removed useless try-catch blocks.

    executeParallelOrderBy() now calculates rowSize only once.

    Removed forward declaration in the unexisting namespace.

    Trim UTs a bit.
2019-11-05 17:23:49 +03:00
7b5e5f0eb6 MCOL-894 Upmerged the fist part of the patch into develop.
MCOL-894 Add default values in Compare and CSEP ctors to activate UTF-8 sorting
    properly.

MCOL-894 Unit tests to build a framework for a new parallel sorting.

MCOL-894 Finished with parallel workers invocation.
     The implementation lacks final aggregation step.

MCOL-894 TupleAnnexStep's init and destructor are now parallel execution aware.

    Implemented final merging step for parallel execution finalizeParallelOrderBy().

    Templated unit test to use it with arbitrary number of rows, threads.

Reuse LimitedOrderBy in the final step

MCOL-894 Cleaned up finalizeParallelOrderBy.

MCOL-894 Add and propagate thread variable that controls a number of threads.

    Optimized comparators used for sorting and add corresponding UTs.

    Refactored TupleAnnexStep::finalizeParallelOrderByDistinct.

    Parallel sorting methods now preallocates memory in batches.

MCOL-894 Fixed comparator for StringCompare.
2019-11-05 15:23:43 +03:00
0d2b0e0070 MCOL-3536 check for Japanese and use byte compare if found 2019-11-05 15:22:15 +03:00
3b01d5ea22 MCOL-3536 use Locale from columnstore.xml when doing ORDER BY 2019-11-05 15:22:15 +03:00
6207d6137d Handle comparison of two negative TIME values properly in the ORDER BY clause. 2019-10-08 10:23:56 -04:00
c3a5b57d85 Use signed integer comparison for TIME data type in the ORDER BY clause. 2019-10-04 17:46:58 -04:00
70b3aa3159 Merge branch 'develop-1.2' into develop-merge-up-20190924-2 2019-09-24 14:17:57 +01:00
95fcc3dcbb MCOL-3423 Don't move decimal for LONG DOUBLE. Clear long double extra bits after copy, not before. 2019-08-20 09:50:43 -05:00
6ccdb4ac10 1. Fix for group_concat(distinct ... ) to use all unique values in a row.
2. Explicitly set array bounds for Row::hash() and Row::equals().
2019-08-15 01:15:05 -04:00
5e4f1b9933 Merge branch 'develop' into MCOL-265 2019-06-10 13:58:03 +01:00
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
e65f80f493 delete visual c++ project files. cmake can generate these if needed 2019-04-25 23:35:03 -05:00
e89d1ac3cf MCOL-265 Add support for TIMESTAMP data type 2019-04-23 00:00:09 -04:00
6ba299cccd Merge branch 'develop-1.2' into MCOL-1822-c 2019-03-06 06:47:46 -05:00
3f2c753947 MCOL-1822-c final checkin 2019-03-05 09:33:39 -06:00
9e1cec56b1 MCOL-1822 finishing up use long double for SUM/AVG 2019-03-01 17:34:57 -06:00
947eaaef26 MCOL-901 group_concat() uses only a subset of unique values
b/c an incorrect number of key columns was used whilst
        initializing Eq() struct. The regression caused by
        changes made for MCOL-1829 so I revised the changes
        made. Now LimitedOrderBy::getKeyLength() returns an
        actual key columns count.
2019-03-02 02:01:41 +03:00
a2aa4b8479 MCOL-1822 Intermediate checkin. DISTINCT not working. 2019-02-25 14:54:46 -06:00
c5b9ae11e5 MCOL-1822 add LONG DOUBLE support 2019-01-29 09:55:43 -06:00
ee2cb7b0de Merge pull request #652 from mariadb-corporation/MCOL-1983
MCOL-1983 Have regr_intercept, regr_slope and regr_r2 return NULL for…
2019-01-23 20:37:50 +03:00
95c4f17b0a Merge branch 'develop-1.1' into 1.2-merge-up-20190122 2019-01-22 08:26:26 +00:00
79811ded8e Merge branch 'develop-1.2' into MCOL-1983
Conflicts:
	VERSION
	utils/windowfunction/windowfunctiontype.cpp
2019-01-21 14:51:43 -06:00
7b4cec5757 MCOL-1829 Subquery with limited order by could potentially return onordered set.
There were two code mistakes: Eq::operator() always returned true for
    any pair and Hasher::operator() always returned 0 as a key.
2019-01-14 16:55:41 +03:00
ab74bec10b Merge branch 'develop-1.1' into 1.2-merge-up-20190111 2019-01-11 20:16:38 +00:00
35a17a87c4 MCOL-1829 Subquery with limited order by could potentially return onordered set.
There were two code mistakes: Eq::operator() always returned true for
	any pair and Hasher::operator() always returned 0 as a key.
2018-12-26 10:39:32 +03:00
cc70726a33 MCOL-1983 For MCOL-1676 the reset of fValOut to NULL happens too soon. 2018-12-13 15:49:11 -06:00
514f2ce7f0 Merge branch 'MCOL-1676' into MCOL-1983 2018-12-13 13:30:56 -06:00
9d438f0a24 MCOL-1676 Window Functions with FLOAT type gives incorrect answer 2018-12-11 09:37:12 -06:00
4e74bbc7d7 MCOL-1676 -- setvalue based on output column type rather than input column type. 2018-11-29 15:29:57 -06:00
0cef3bf31c MCOL-1983 Have regr_intercept, regr_slope and regr_r2 return NULL for 1 or 0 rows in set 2018-11-29 13:31:12 -06:00
ed43876695 MCOL-1793 Refactor to handle another edge case. Also fix CORR and reset 2018-11-28 15:49:34 -06:00
bbe642b1bc MCOL-1793 UDAnF: Reset fValOut so if the function returns without value, NULL is the result. 2018-11-28 10:59:08 -06:00
06d1c9fcbe MCOL-1793 Handle transition of Window Frame from outside of Partition to inside part 2 2018-11-06 11:07:49 -06:00
df6d97ca04 MCOL-1793 Handle transition of Window Frame from outside of Partition to inside 2018-11-06 10:48:37 -06:00
1426b4d99b MCOL-1793-regr_* functions get wrong answer. Pretty up some code. 2018-11-06 10:30:38 -06:00
e58c4c3381 MCOL-1793 remove commented experimental code 2018-11-06 10:16:34 -06:00
d01fe36fdc MCOL-1793 Window functions return garbage if current row outside of window frame. 2018-11-06 10:11:45 -06:00
72eb1d7345 MCOL-1793 Window functions fail when current row outside of window 2018-10-29 12:18:15 -05:00
dd99e420e0 MCOL-521 Remove "typename" from certain places as some compiles can't handle it 2018-10-02 11:05:50 -05:00
70cec8f484 MCOL-1698 get DISTINCT working for UDAnF 2018-09-11 12:02:05 -05:00
52cbb62317 MCOL-1698 Fix code for DISTINCT in UDAnF 2018-09-10 13:53:56 -05:00