Description
We need allow user to enter how many days they want to keep the cube data in the cube wizard; The default value is "0" which means this feature is disabled, so all historic cube segments will be kept;
In the backend, convert the days nubmer to milliseconds and saved in cube instance json file, like the sample cube "kylin_sales_cube.json":
{
"uuid" : "1eaca32a-a33e-4b69-83dd-0bb8b1f8c53b",
"last_modified" : 0,
"name" : "kylin_sales_cube",
"owner" : null,
"version" : null,
"descriptor" : "kylin_sales_cube_desc",
"segments" : [ ],
"auto_merge_time_ranges" : [604800000, 2419200000],
"retention_range": 63072000000,
"create_time" : null
}
Here "63072000000" = 730 days = 2 years;