-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62916/
-----------------------------------------------------------
Review request for kylin, Dayue Gao, Dong Li, hongbin ma, and Wang Xiaoyu.
Bugs: KYLIN-2931
https://issues.apache.org/jira/browse/KYLIN-2931
Repository: kylin
Description
-------
1,Add project_1 and project_2,each project has the table kylin_sales_copy;
2,Do the following steps:
a,use 'create table kylin_sales_copy as select * from kylin_sales;' to copy
table kylin_sales;
b,load table kylin_sales_copy and calculate column cardinality in project_1 and
project_2,please refer to 01.png;
c,use 'drop table kylin_sales_copy;' to drop table kylin_sales_copy;
d,use 'create table kylin_sales_copy as select
TRANS_ID,PART_DT,LSTG_FORMAT_NAME,LEAF_CATEG_ID,LSTG_SITE_ID,SLR_SEGMENT_CD,PRICE
from kylin_sales where price < 20;' to create the new kylin_sales_copy table;
Now the structure of kylin_sales_copy has changed, the same as the cardinality.
3,Reload table kylin_sales_copy in project_1 or project_2,we found that the
cardinality is not change,please refer to 02.png.
However,I found that the new cardinality was calculated but not update on the
web by debug the code,please refer to 03.png,04.png.It should update correct
cardinality like 05.png.
Diffs
-----
core-metadata/src/main/java/org/apache/kylin/metadata/model/TableExtDesc.java
42da32e7e
Diff: https://reviews.apache.org/r/62916/diff/1/
Testing
-------
Thanks,
pengjianhua