1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00
Commit Graph

119 Commits

Author SHA1 Message Date
Roman Nozdrin
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
Roman Nozdrin
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
David Hall
0d2b0e0070 MCOL-3536 check for Japanese and use byte compare if found 2019-11-05 15:22:15 +03:00
David Hall
3b01d5ea22 MCOL-3536 use Locale from columnstore.xml when doing ORDER BY 2019-11-05 15:22:15 +03:00
Gagan Goel
6207d6137d Handle comparison of two negative TIME values properly in the ORDER BY clause. 2019-10-08 10:23:56 -04:00
Gagan Goel
c3a5b57d85 Use signed integer comparison for TIME data type in the ORDER BY clause. 2019-10-04 17:46:58 -04:00
Andrew Hutchings
70b3aa3159 Merge branch 'develop-1.2' into develop-merge-up-20190924-2 2019-09-24 14:17:57 +01:00
David Hall
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
Gagan Goel
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
Andrew Hutchings
5e4f1b9933 Merge branch 'develop' into MCOL-265 2019-06-10 13:58:03 +01: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
David Mott
e65f80f493 delete visual c++ project files. cmake can generate these if needed 2019-04-25 23:35:03 -05:00
Gagan Goel
e89d1ac3cf MCOL-265 Add support for TIMESTAMP data type 2019-04-23 00:00:09 -04:00
Andrew Hutchings
6ba299cccd Merge branch 'develop-1.2' into MCOL-1822-c 2019-03-06 06:47:46 -05:00
David Hall
3f2c753947 MCOL-1822-c final checkin 2019-03-05 09:33:39 -06:00
David Hall
9e1cec56b1 MCOL-1822 finishing up use long double for SUM/AVG 2019-03-01 17:34:57 -06:00
Roman Nozdrin
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
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
Roman Nozdrin
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
Andrew Hutchings
95c4f17b0a Merge branch 'develop-1.1' into 1.2-merge-up-20190122 2019-01-22 08:26:26 +00:00
David Hall
79811ded8e Merge branch 'develop-1.2' into MCOL-1983
Conflicts:
	VERSION
	utils/windowfunction/windowfunctiontype.cpp
2019-01-21 14:51:43 -06:00
Roman Nozdrin
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
Andrew Hutchings
ab74bec10b Merge branch 'develop-1.1' into 1.2-merge-up-20190111 2019-01-11 20:16:38 +00:00
Roman Nozdrin
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
David Hall
cc70726a33 MCOL-1983 For MCOL-1676 the reset of fValOut to NULL happens too soon. 2018-12-13 15:49:11 -06:00
David Hall
514f2ce7f0 Merge branch 'MCOL-1676' into MCOL-1983 2018-12-13 13:30:56 -06:00
David Hall
9d438f0a24 MCOL-1676 Window Functions with FLOAT type gives incorrect answer 2018-12-11 09:37:12 -06:00
David Hall
4e74bbc7d7 MCOL-1676 -- setvalue based on output column type rather than input column type. 2018-11-29 15:29:57 -06:00
David Hall
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
David Hall
ed43876695 MCOL-1793 Refactor to handle another edge case. Also fix CORR and reset 2018-11-28 15:49:34 -06:00
David Hall
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
David Hall
06d1c9fcbe MCOL-1793 Handle transition of Window Frame from outside of Partition to inside part 2 2018-11-06 11:07:49 -06:00
David Hall
df6d97ca04 MCOL-1793 Handle transition of Window Frame from outside of Partition to inside 2018-11-06 10:48:37 -06:00
David Hall
1426b4d99b MCOL-1793-regr_* functions get wrong answer. Pretty up some code. 2018-11-06 10:30:38 -06:00
David Hall
e58c4c3381 MCOL-1793 remove commented experimental code 2018-11-06 10:16:34 -06:00
David Hall
d01fe36fdc MCOL-1793 Window functions return garbage if current row outside of window frame. 2018-11-06 10:11:45 -06:00
David Hall
72eb1d7345 MCOL-1793 Window functions fail when current row outside of window 2018-10-29 12:18:15 -05:00
David Hall
dd99e420e0 MCOL-521 Remove "typename" from certain places as some compiles can't handle it 2018-10-02 11:05:50 -05:00
David Hall
70cec8f484 MCOL-1698 get DISTINCT working for UDAnF 2018-09-11 12:02:05 -05:00
David Hall
52cbb62317 MCOL-1698 Fix code for DISTINCT in UDAnF 2018-09-10 13:53:56 -05:00
Andrew Hutchings
8c90419852 Fix merge and coding style issues 2018-06-22 15:31:31 +01:00
David Hall
2b77f0f284 MCOL-1201 Handle NULLs in Window functions correctly. 2018-06-06 16:51:47 -05:00
David Hall
ea70806e93 MCOL-1201 Add support for UDAF multiple parm constants 2018-06-05 14:10:04 -05:00
David Hall
6fa7dded6f MCOL-1201 manual rebase with develop. Obsoletes branch MCOL-1201 2018-06-05 13:54:17 -05:00
Andrew Hutchings
1d8964ec0d Fix code style 2018-05-31 14:44:48 +01:00
Roman Nozdrin
1a1f3ea506 MCOL-1449. Fix the regression caused by changes in idborderby code for MCOL-1052. Add LIMIT and OFFSET support for group by handler. 2018-05-31 13:51:21 +03:00
Andrew Hutchings
3c1ebd8b94 MCOL-392 Add initial TIME datatype support 2018-04-30 09:42:41 +01:00
Andrew Hutchings
a347a8f5aa Merge branch 'develop-1.1' into develop 2017-10-30 10:29:30 +00:00
Andrew Hutchings
01446d1e22 Reformat all code to coding standard 2017-10-26 17:18:17 +01:00