Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
YearMonthDayPartitionConditionBuilder supports partition named year, month, day, but can not support partition names like Y, M, D.
Because there are user using fact table partitioned by Y, M, D, so add CustomYearMonthDayFieldPartitionConditionBuilder, support custom year, month, day partitions name.
Partition metadata in model.json like:
{
"uuid" : "459d48c1-a8a6-cdf5-6ea7-e2ae48b248e9",
"last_modified" : 1571652918478,
"version" : "2.6.0.20500",
"name" : "kylin_sales_ymd",
"owner" : "admin",
"is_draft" : false,
"description" : "",
"fact_table" : "BIGDATA_KYLIN.KYLIN_SALES_YMD",
"lookups" : [ ],
"dimensions" : [
],
"metrics" : [ "KYLIN_SALES_YMD.PRICE", "KYLIN_SALES_YMD.ITEM_COUNT" ],
"filter_condition" : "",
"partition_desc" :
,
"capacity" : "MEDIUM"
}
Partition_date_column is the year, month, and day partition field split by ','., and Partition_condition_builder is org.apache.kylin.metadata.model.PartitionDesc$CustomYearMonthDayFieldPartitionConditionBuilder
Web can create a normal model and "Edit JSON" on Kylin web
Attachments
Attachments
Issue Links
- is duplicated by
-
KYLIN-4210 Support the custom year, month, and day field name partition for the fact table
- Closed
- links to