summaryrefslogtreecommitdiff
path: root/mysql-test/r/selectivity.result
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be ↵Oleksandr Byelkin2015-09-041-12/+6
| | | | stopped with no-zero size)
* Fixed bug mdev-7316.Igor Babaev2015-02-051-0/+36
| | | | | The function table_cond_selectivity() should take into account that condition selectivity for some fields can be set to 0.
* Fix buildbot failure: make selectivity.test and selectivity_innodb.test work ↵Sergey Petrunya2014-11-111-4/+4
| | | | | | when table names are case-insensitive.
* Fixed bug mdev-6843.Igor Babaev2014-10-281-0/+28
| | | | | | The function get_column_range_cardinality() returned a wrong result for any column containing only null values.
* Fixed bug mdev-6325.Igor Babaev2014-10-281-0/+35
| | | | Field::selectivity should be set for all fields used in range conditions.
* MDEV-6047: Make exists_to_in optimization ON by defaultunknown2014-06-091-3/+3
|
* MDEV-4360: ANALYZE shows "Table is already up to date" while updating statsSergey Petrunya2014-03-281-0/+32
| | | | | - Show a line with "Engine-independent statistics collected" when ANALYZE command caused EITS statistics to be recollected.
* Code cleanup:Sergey Petrunya2014-03-271-98/+0
| | | | | - Move [some] engine-agnostic tests from t/selectivity.test to t/selectivity_no_engine.test - Move Histogram::point_selectivity to sql_statistics.cc
* MergeSergey Petrunya2014-03-271-4/+74
|\
| * MDEV-5926, MDEV-4362 post-fixes:Sergey Petrunya2014-03-271-1/+1
| | | | | | | | | | | | - Histogram::find_bucket() should not walk off the end of the value range. - Address review feedback in Histogram::point_selectivity(): different handling for zero-width buckets, and explanations.
| * MDEV-4362: {division by zero when lookup constant is outside the value table}Sergey Petrunya2014-03-261-0/+31
| | | | | | | | | | | | - Fix Histogram::point_selectivity() to work in the case where the passed value_pos=0 (or 1) and the first (or the last) bucket in the histogram has zero value-range (i.e one value).
| * MDEV-5926: EITS: Histogram estimates for column=least_possible_value are wrongSergey Petrunya2014-03-261-4/+43
| | | | | | | | | | | | | | | | [Attempt #2] - Use a new selectivity calculation formula in Histogram::point_selectivity. The formula is different from the old one because it was developed from scratch. it doesn't have any possible division-by-zero problems.
* | Fixed bug mdev-5931.Igor Babaev2014-03-221-0/+22
|/ | | | | | After constant table row substitution the where condition may be converted to always true. The function calculate_cond_selectivity_for_table() should take into account this possibility.
* MDEV-5917: EITS: different order of predicates in IN (...) causes different ↵Sergey Petrunya2014-03-211-0/+32
| | | | | | estimates - Save range key before making field->pos_in_interval() call (like we do for non-equality ranges)
* Merge.Igor Babaev2014-03-191-18/+87
|\
| * Fixed bug mdev-5191.Igor Babaev2014-03-181-18/+87
| | | | | | | | | | Corrected cost estimates when a join buffer is used and the optimizer is requested to use condition selectivities.
* | 10.0-base mergeSergei Golubchik2014-02-261-0/+17
|\ \
| * | Fixed bug mdev-5630.Igor Babaev2014-02-111-0/+18
| | | | | | | | | | | | | | | | | | The function calculate_cond_selectivity_for_table() must consider the case when the key range tree returned by the call of get_mm_tree() is of the type SEL_TREE::ALWAYS.
* | | 10.0-base mergeSergei Golubchik2013-12-161-0/+37
|\ \ \ | |/ /
| * | Fixed bug mdev-5415.Igor Babaev2013-12-141-0/+8
| |/ | | | | | | Do not calculate selectivity of conditions for the tables of the information schema.
| * Added the test case for bug mdev-5200.Igor Babaev2013-11-261-0/+29
| | | | | | | | The bug was fixed by the patch applied to the 5.3 tree in the revision 3727.
* | Merge 10.0-base -> 10.0Sergey Petrunya2013-10-161-2/+2
|\ \ | |/
| * [SHOW] EXPLAIN UPDATE/DELETE, code re-architectingSergey Petrunya2013-06-181-2/+2
| | | | | | | | | | | | - Pass more tests - select with subselects is now shown with type=PRIMARY where it used to be (incorrectly) 'SIMPLE'
* | Fixed bug mdev-4429: fixed another place where selectivity == 0 requiresIgor Babaev2013-09-301-0/+37
|/ | | | a special handling.
* Fixed bug mdev-4406.Igor Babaev2013-04-201-0/+34
| | | | | This bug in the code of get_column_range_cardinality() could lead to wrong estimates of number of records in ranges for non-nullable columns.
* MDEV-4345unknown2013-04-181-0/+83
| | | | Sampling of selectivity of LIKE predicate.
* Fixed a typo/bug that could lead to wrong selectivity numbers forIgor Babaev2013-04-171-2/+2
| | | | | | tables retrieved by range scans. Added comments forgotten in the previous patch.
* Fixed bug mdev-4389.Igor Babaev2013-04-121-0/+22
| | | | The selectivity of a range degenerated into a point never should be set to 0.
* Fixed mdev-4380.Igor Babaev2013-04-081-0/+25
| | | | | | | | Uninitialized field next_equal_field of the Field objects created for the fields of a temporary table could hang the server.
* Fixed mdev-4378.Igor Babaev2013-04-081-0/+29
| | | | | Uninitialized field cond_selectivity of the Field objects created for the fields of a temporary table could cause an assertion abort.
* Fixed bug mdev-4363.Igor Babaev2013-04-061-1/+41
| | | | | | When calculating the selectivity of a range in the function get_column_range_cardinality a check whether NULL values are included into into the range must be done.
* Fixed bug mdev-4372.Igor Babaev2013-04-061-0/+28
| | | | | Range analysis of non-indexed columns should handle properly range trees with type == SEL_TREE::MAYBE.
* Fixed bug mdev-4373:Igor Babaev2013-04-061-0/+17
| | | | Valgrind complained on usage of uninitialized memory.
* Fixed bugs mdev-4357 and mdev-4359.Igor Babaev2013-04-051-3/+3
| | | | | | The values of the column HIST_TYPE from the statistical table mysql.column_stats were stored in the table and read from the table incorrectly.
* Fixed bug mdev-4371.Igor Babaev2013-04-051-0/+28
| | | | Avoid possible division by 0.
* Fixed bug mdev-4370.Igor Babaev2013-04-051-0/+28
| | | | | | Don't try to a histogram if it is not read into the cache for statistical data. It may happen so if optimizer_use_condition_selectivity is set to 3. This setting orders the optimizer not use histograms to calculate selectivity.
* Fixed bug mdev-4366.Igor Babaev2013-04-041-2/+32
| | | | | | When performing the range analysis for a conjunction the function calculate_cond_selectivity_for_table should take in to account that the analysis of some conjuncts may return SEL_ARG::IMPOSSIBLE.
* Fixed bug mdev-4367.Igor Babaev2013-04-031-0/+14
| | | | | When calculating selectivity of conditions one should take into account the cases when some tables to be joined are empty.
* Fixed bug mdev-4350.Igor Babaev2013-04-031-5/+40
| | | | | | Wrong formulas used by the function Histogram::point_selectivity() could result in a negative value of selectivity returned by the function.
* Fixed bug mdev-4349.Igor Babaev2013-04-031-0/+40
| | | | | Range analysis of the condition for a non-indexed column may return an impossible range. This must be taken into account.
* Fixed bug mdev-4348.Igor Babaev2013-04-011-0/+28
| | | | The bug was caused a wrong casting.
* Take into account the number of null values in any used column whenIgor Babaev2013-03-311-3/+28
| | | | calculating selectivity of conditions.
* Merge 10.0-base -> mwl253.Igor Babaev2013-03-311-7/+7
|
* MergeIgor Babaev2013-03-301-2/+63
|\
| * Added the type of histogram for mwl #253.Igor Babaev2013-03-301-2/+63
| | | | | | | | Introduced double precision height-balanced histograms.
* | Fixed several bugs for mwl #253.Igor Babaev2013-03-301-0/+341
|/ | | | | | | | | | | | | | | One of them is quite serious: the function table_cond_selectivity used the TABLE_REF structure for ref/eq_ref access methods as if they had been filled. In fact these structure are filled after the best execution plan has been chosen. The other bugs happened due to: - an erroneous attempt at get statistics on the result of materialization of a view - incorrect handling of ranges with no left/right limits when calculating selectivity of range conditions on non-indexed columns - lack of cleanup for some newly introduced fields
* Added histogams for table columns.Igor Babaev2013-03-251-1/+110
|
* The pilot patch for mwl#253.Igor Babaev2013-03-111-0/+114