summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2018-12-07 02:12:22 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2018-12-07 19:59:45 +0530
commit4886d14827c69877e8d089ae7c7f178a9a54ad7a (patch)
tree3e059163c76f6b52fae3b09d8e6cfee87da33814 /sql/partition_info.h
parent12b1ba195cb0802053bc2fae3b507ec9721685f8 (diff)
downloadmariadb-git-4886d14827c69877e8d089ae7c7f178a9a54ad7a.tar.gz
MDEV-17032: Estimates are higher for partitions of a table with @@use_stat_tables= PREFERABLY
The problem here is EITS statistics does not calculate statistics for the partitions of the table. So a temporary solution would be to not read EITS statistics for partitioned tables. Also disabling reading of EITS for columns that participate in the partition list of a table.
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r--sql/partition_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h
index f250c5496bf..10b8954ace7 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -384,6 +384,7 @@ private:
bool is_full_part_expr_in_fields(List<Item> &fields);
public:
bool has_unique_name(partition_element *element);
+ bool field_in_partition_expr(Field *field) const;
};
uint32 get_next_partition_id_range(struct st_partition_iter* part_iter);