- 06 Apr, 2016 4 commits
-
-
Sergei Petrunia authored
- Move filesort's sort_positions argument into class Filesort. - Make window function code construct Filesort with sort_positions=true.
-
Sergei Petrunia authored
length is now calculated in Filesort::make_sortorder.
-
Sergei Petrunia authored
As discussed on the call: - s/Window_funcs_computation_step/Window_funcs_computation/g - s/Window_func_sort/Window_funcs_sort/g
-
Vicențiu Ciorbaru authored
-
- 05 Apr, 2016 1 commit
-
-
Sergei Petrunia authored
- Rename Window_funcs_computation to Window_funcs_computation_step - Introduce Window_func_sort which invokes filesort and then invokes computation of all window functions that use this ordering. - Expose Window functions' sort operations in EXPLAIN|ANALYZE FORMAT=JSON
-
- 04 Apr, 2016 5 commits
-
-
Igor Babaev authored
of compare_window_funcs_by_window_specs().
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
The current implementation does not allow for a dynamic expression within the sum function's parameter.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
- 01 Apr, 2016 3 commits
-
-
Igor Babaev authored
The problem popped up when running win_percent_cume.test with --ps-protocol.
-
Igor Babaev authored
Window names has to be resolved only once.
-
Igor Babaev authored
that the call-back comparison function returns a positive number when arg1 < arg2, and a negative number when arg1 > arg2. This is not in line with other implementation of sorting algorithm. Changed bubble_sort: now a negative result from the comparison function means that arg1 < arg2, and positive result means that arg1 > arg2. Changed accordingly all call-back functions that are used as parameters in the call of bubble_sort. Added a test case to check the proper sorting of window functions.
-
- 30 Mar, 2016 4 commits
-
-
Igor Babaev authored
The function did not take into account the case when only one of of the pointers to the compared frames is NULL.
-
Sergei Petrunia authored
This will be useful for window functions development.
-
Sergei Petrunia authored
-
Igor Babaev authored
of the temporary table needed to compute them.
-
- 28 Mar, 2016 10 commits
-
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
Also fixed a bug in row_counts detection, when partition changes.
-
Vicențiu Ciorbaru authored
The percent_rank function now is compatible with the cursor algorithm. We no longer need a special implementation for it to work.
-
Vicențiu Ciorbaru authored
Instead of relying solely on top bound and bottom bound cursors, now we create a list of cursors that are iterated over.
-
Sergei Petrunia authored
-
Sergei Petrunia authored
-
Sergei Petrunia authored
- Hook window function computation into the right location. - Add a testcase which shows that HAVING is now checked before the window function computation step.
-
Sergei Petrunia authored
-
Sergei Petrunia authored
- Make EXPLAIN code use the post-join operations - Remove Sort_and_group_tracker that was used for that purpose
-
Sergey Vojtovich authored
man page updates: mysqlbinlog options, mysqlcheck clarification and 10.2 updates
-
- 27 Mar, 2016 5 commits
-
-
Sergei Petrunia authored
-
Sergei Petrunia authored
We can call setup_partition_border_check() from JOIN::make_aggr_tables_info(), provided that call is made after appropriate set_items_ref_array() call.
-
Sergei Petrunia authored
-
Sergei Petrunia authored
gbh != NULL is handled in a separate branch above, we don't get into this part of code when gbh!=NULL
-
Sergei Petrunia authored
Added class Window_funcs_computation, with setup() method to setup execution, and exec() to run window function computation. setup() is currently trivial. In the future, it is expected to optimize the number of sorting operations and passes that are done over the temp. table.
-
- 25 Mar, 2016 3 commits
-
-
Alexander Barkov authored
as it can return negative values. The typo was introduced in the patch for MDEV-9665 in 10.2.0.
-
Oleksandr Byelkin authored
-
Alexander Barkov authored
as they are not used any more. We now use function templates from strcoll.ic instead.
-
- 24 Mar, 2016 5 commits
-
-
Oleksandr Byelkin authored
-
Sergei Golubchik authored
-
Oleksandr Byelkin authored
-
Oleksandr Byelkin authored
Fixed calculating pointer to memory allocated for names in numeric format in unpacking procedure.
-
Alexey Botchkov authored
-