[MCOL-1084] table_usage() stored procedure show zero total usage when there are no dict columns Created: 2017-12-06 Updated: 2020-08-25 Resolved: 2018-03-21 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MDB Plugin |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2018-05, 2018-06 | ||||||||
| Description |
|
If a table doesn't have a dictionary column then table_usage('SCHEMA', NULL); returns 0 TOTAL_USAGE for the table. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-02-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
For QA: create a table in test with just INTs and add some data. Run columnstore_info.table_usage('test', NULL); before fix this will show 0 in total_usage. After it will show the same amount as data_disk_usage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2018-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: 1.1.4-1 source /root/columnstore/mariadb-columnstore-server Merge pull request #104 from mariadb-corporation/davidhilldallas-patch-3 update version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #427 from mariadb-corporation/ Mcol 1225 - fix mysql/lib library path Reproduced reported issue in 1.1.3-2 MariaDB [mytest]> desc t1;
------
------ MariaDB [mytest]> select * from t1;
-----
----- MariaDB [mytest]> call columnstore_info.table_usage("mytest",NULL);
-------------
------------- 1.1.4-1 MariaDB [mytest]> call columnstore_info.table_usage("mytest",NULL);
-------------
------------- |