You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/08/14 05:21:13 UTC

[08/50] [abbrv] incubator-kylin git commit: KYLIN-934 test int overflow case in test cube

KYLIN-934 test int overflow case in test cube


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/9032eff9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/9032eff9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/9032eff9

Branch: refs/heads/0.7
Commit: 9032eff9c8f9d3dd8730fb3686d396af75f36ad4
Parents: e13284b
Author: honma <ho...@ebay.com>
Authored: Thu Aug 6 14:06:13 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Thu Aug 6 14:06:27 2015 +0800

----------------------------------------------------------------------
 .../test_kylin_cube_with_slr_desc.json          | 384 +++++++++-------
 ...test_kylin_cube_with_slr_left_join_desc.json | 384 +++++++++-------
 .../test_kylin_cube_without_slr_desc.json       | 457 +++++++++++--------
 ...t_kylin_cube_without_slr_left_join_desc.json | 457 +++++++++++--------
 .../localmeta/data/data_gen_config.json         |  48 +-
 .../table/DEFAULT.TEST_KYLIN_FACT.json          |   2 +-
 .../java/org/apache/kylin/job/DataGenTest.java  |   1 -
 7 files changed, 1026 insertions(+), 707 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_desc.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_desc.json b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_desc.json
index 8d76496..4a2a4dd 100644
--- a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_desc.json
+++ b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_desc.json
@@ -1,167 +1,241 @@
 {
-  "uuid" : "a24ca905-1fc6-4f67-985c-38fa5aeafd92",
-  "name" : "test_kylin_cube_with_slr_desc",
-  "description" : null,
-  "dimensions" : [ {
-    "id" : 0,
-    "name" : "CAL_DT",
-    "table" : "EDW.TEST_CAL_DT",
-    "column" : null,
-    "derived" : [ "WEEK_BEG_DT" ],
-    "hierarchy" : false
-  }, {
-    "id" : 1,
-    "name" : "CATEGORY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : null,
-    "derived" : [ "USER_DEFINED_FIELD1", "USER_DEFINED_FIELD3", "UPD_DATE", "UPD_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 2,
-    "name" : "CATEGORY_HIERARCHY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : [ "META_CATEG_NAME", "CATEG_LVL2_NAME", "CATEG_LVL3_NAME" ],
-    "derived" : null,
-    "hierarchy" : true
-  }, {
-    "id" : 3,
-    "name" : "LSTG_FORMAT_NAME",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "LSTG_FORMAT_NAME" ],
-    "derived" : null,
-    "hierarchy" : false
-  }, {
-    "id" : 4,
-    "name" : "SITE_ID",
-    "table" : "EDW.TEST_SITES",
-    "column" : null,
-    "derived" : [ "SITE_NAME", "CRE_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 5,
-    "name" : "SELLER_TYPE_CD",
-    "table" : "EDW.TEST_SELLER_TYPE_DIM",
-    "column" : null,
-    "derived" : [ "SELLER_TYPE_DESC" ],
-    "hierarchy" : false
-  }, {
-    "id" : 6,
-    "name" : "SELLER_ID",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "SELLER_ID" ],
-    "derived" : null,
-    "hierarchy" : false
-  } ],
-  "measures" : [ {
-    "id" : 1,
-    "name" : "GMV_SUM",
-    "function" : {
-      "expression" : "SUM",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+  "uuid": "a24ca905-1fc6-4f67-985c-38fa5aeafd92",
+  "name": "test_kylin_cube_with_slr_desc",
+  "description": null,
+  "dimensions": [
+    {
+      "id": 0,
+      "name": "CAL_DT",
+      "table": "EDW.TEST_CAL_DT",
+      "column": null,
+      "derived": [
+        "WEEK_BEG_DT"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 1,
+      "name": "CATEGORY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": null,
+      "derived": [
+        "USER_DEFINED_FIELD1",
+        "USER_DEFINED_FIELD3",
+        "UPD_DATE",
+        "UPD_USER"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 2,
+      "name": "CATEGORY_HIERARCHY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": [
+        "META_CATEG_NAME",
+        "CATEG_LVL2_NAME",
+        "CATEG_LVL3_NAME"
+      ],
+      "derived": null,
+      "hierarchy": true
+    },
+    {
+      "id": 3,
+      "name": "LSTG_FORMAT_NAME",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "LSTG_FORMAT_NAME"
+      ],
+      "derived": null,
+      "hierarchy": false
+    },
+    {
+      "id": 4,
+      "name": "SITE_ID",
+      "table": "EDW.TEST_SITES",
+      "column": null,
+      "derived": [
+        "SITE_NAME",
+        "CRE_USER"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 5,
+      "name": "SELLER_TYPE_CD",
+      "table": "EDW.TEST_SELLER_TYPE_DIM",
+      "column": null,
+      "derived": [
+        "SELLER_TYPE_DESC"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 6,
+      "name": "SELLER_ID",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "SELLER_ID"
+      ],
+      "derived": null,
+      "hierarchy": false
+    }
+  ],
+  "measures": [
+    {
+      "id": 1,
+      "name": "GMV_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 2,
-    "name" : "GMV_MIN",
-    "function" : {
-      "expression" : "MIN",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+    {
+      "id": 2,
+      "name": "GMV_MIN",
+      "function": {
+        "expression": "MIN",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 3,
-    "name" : "GMV_MAX",
-    "function" : {
-      "expression" : "MAX",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+    {
+      "id": 3,
+      "name": "GMV_MAX",
+      "function": {
+        "expression": "MAX",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 4,
-    "name" : "TRANS_CNT",
-    "function" : {
-      "expression" : "COUNT",
-      "parameter" : {
-        "type" : "constant",
-        "value" : "1"
+    {
+      "id": 4,
+      "name": "TRANS_CNT",
+      "function": {
+        "expression": "COUNT",
+        "parameter": {
+          "type": "constant",
+          "value": "1"
+        },
+        "returntype": "bigint"
       },
-      "returntype" : "bigint"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  } ],
-  "rowkey" : {
-    "rowkey_columns" : [ {
-      "column" : "seller_id",
-      "length" : 18,
-      "dictionary" : null,
-      "mandatory" : true
-    }, {
-      "column" : "cal_dt",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "leaf_categ_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "meta_categ_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl2_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl3_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "lstg_format_name",
-      "length" : 12,
-      "dictionary" : null,
-      "mandatory" : false
-    }, {
-      "column" : "lstg_site_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "slr_segment_cd",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    } ],
-    "aggregation_groups" : [ [ "leaf_categ_id", "meta_categ_name", "categ_lvl2_name", "categ_lvl3_name", "cal_dt" ] ]
+    {
+      "id": 5,
+      "name": "ITEM_COUNT_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "ITEM_COUNT"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
+    }
+  ],
+  "rowkey": {
+    "rowkey_columns": [
+      {
+        "column": "seller_id",
+        "length": 18,
+        "dictionary": null,
+        "mandatory": true
+      },
+      {
+        "column": "cal_dt",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "leaf_categ_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "meta_categ_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl2_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl3_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "lstg_format_name",
+        "length": 12,
+        "dictionary": null,
+        "mandatory": false
+      },
+      {
+        "column": "lstg_site_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "slr_segment_cd",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      }
+    ],
+    "aggregation_groups": [
+      [
+        "leaf_categ_id",
+        "meta_categ_name",
+        "categ_lvl2_name",
+        "categ_lvl3_name",
+        "cal_dt"
+      ]
+    ]
   },
-  "signature" : "lsLAl2jL62ZApmOLZqWU3g==",
-  "last_modified" : 1422435345330,
-  "model_name" : "test_kylin_with_slr_model_desc",
-  "null_string" : null,
-  "hbase_mapping" : {
-    "column_family" : [ {
-      "name" : "f1",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "gmv_sum", "gmv_min", "gmv_max", "trans_cnt" ]
-      } ]
-    } ]
+  "signature": "lsLAl2jL62ZApmOLZqWU3g==",
+  "last_modified": 1422435345330,
+  "model_name": "test_kylin_with_slr_model_desc",
+  "null_string": null,
+  "hbase_mapping": {
+    "column_family": [
+      {
+        "name": "f1",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "gmv_sum",
+              "gmv_min",
+              "gmv_max",
+              "trans_cnt",
+              "item_count_sum"
+            ]
+          }
+        ]
+      }
+    ]
   },
-  "notify_list" : null
+  "notify_list": null
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_left_join_desc.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_left_join_desc.json b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_left_join_desc.json
index b59193e..8e6b2ff 100644
--- a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_left_join_desc.json
+++ b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_with_slr_left_join_desc.json
@@ -1,167 +1,241 @@
 {
-  "uuid" : "bbbba905-1fc6-4f67-985c-38fa5aeafd92",
-  "name" : "test_kylin_cube_with_slr_left_join_desc",
-  "description" : null,
-  "dimensions" : [ {
-    "id" : 0,
-    "name" : "CAL_DT",
-    "table" : "EDW.TEST_CAL_DT",
-    "column" : null,
-    "derived" : [ "WEEK_BEG_DT" ],
-    "hierarchy" : false
-  }, {
-    "id" : 1,
-    "name" : "CATEGORY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : [ "META_CATEG_NAME", "CATEG_LVL2_NAME", "CATEG_LVL3_NAME" ],
-    "derived" : null,
-    "hierarchy" : true
-  }, {
-    "id" : 2,
-    "name" : "CATEGORY_DERIVED",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : null,
-    "derived" : [ "USER_DEFINED_FIELD1", "USER_DEFINED_FIELD3", "UPD_DATE", "UPD_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 3,
-    "name" : "LSTG_FORMAT_NAME",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "LSTG_FORMAT_NAME" ],
-    "derived" : null,
-    "hierarchy" : false
-  }, {
-    "id" : 4,
-    "name" : "SITE_ID",
-    "table" : "EDW.TEST_SITES",
-    "column" : null,
-    "derived" : [ "SITE_NAME", "CRE_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 5,
-    "name" : "SELLER_TYPE_CD",
-    "table" : "EDW.TEST_SELLER_TYPE_DIM",
-    "column" : null,
-    "derived" : [ "SELLER_TYPE_DESC" ],
-    "hierarchy" : false
-  }, {
-    "id" : 6,
-    "name" : "SELLER_ID",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "SELLER_ID" ],
-    "derived" : null,
-    "hierarchy" : false
-  } ],
-  "measures" : [ {
-    "id" : 1,
-    "name" : "GMV_SUM",
-    "function" : {
-      "expression" : "SUM",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+  "uuid": "bbbba905-1fc6-4f67-985c-38fa5aeafd92",
+  "name": "test_kylin_cube_with_slr_left_join_desc",
+  "description": null,
+  "dimensions": [
+    {
+      "id": 0,
+      "name": "CAL_DT",
+      "table": "EDW.TEST_CAL_DT",
+      "column": null,
+      "derived": [
+        "WEEK_BEG_DT"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 1,
+      "name": "CATEGORY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": [
+        "META_CATEG_NAME",
+        "CATEG_LVL2_NAME",
+        "CATEG_LVL3_NAME"
+      ],
+      "derived": null,
+      "hierarchy": true
+    },
+    {
+      "id": 2,
+      "name": "CATEGORY_DERIVED",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": null,
+      "derived": [
+        "USER_DEFINED_FIELD1",
+        "USER_DEFINED_FIELD3",
+        "UPD_DATE",
+        "UPD_USER"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 3,
+      "name": "LSTG_FORMAT_NAME",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "LSTG_FORMAT_NAME"
+      ],
+      "derived": null,
+      "hierarchy": false
+    },
+    {
+      "id": 4,
+      "name": "SITE_ID",
+      "table": "EDW.TEST_SITES",
+      "column": null,
+      "derived": [
+        "SITE_NAME",
+        "CRE_USER"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 5,
+      "name": "SELLER_TYPE_CD",
+      "table": "EDW.TEST_SELLER_TYPE_DIM",
+      "column": null,
+      "derived": [
+        "SELLER_TYPE_DESC"
+      ],
+      "hierarchy": false
+    },
+    {
+      "id": 6,
+      "name": "SELLER_ID",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "SELLER_ID"
+      ],
+      "derived": null,
+      "hierarchy": false
+    }
+  ],
+  "measures": [
+    {
+      "id": 1,
+      "name": "GMV_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 2,
-    "name" : "GMV_MIN",
-    "function" : {
-      "expression" : "MIN",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+    {
+      "id": 2,
+      "name": "GMV_MIN",
+      "function": {
+        "expression": "MIN",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 3,
-    "name" : "GMV_MAX",
-    "function" : {
-      "expression" : "MAX",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
+    {
+      "id": 3,
+      "name": "GMV_MAX",
+      "function": {
+        "expression": "MAX",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
       },
-      "returntype" : "decimal(19,4)"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 4,
-    "name" : "TRANS_CNT",
-    "function" : {
-      "expression" : "COUNT",
-      "parameter" : {
-        "type" : "constant",
-        "value" : "1"
+    {
+      "id": 4,
+      "name": "TRANS_CNT",
+      "function": {
+        "expression": "COUNT",
+        "parameter": {
+          "type": "constant",
+          "value": "1"
+        },
+        "returntype": "bigint"
       },
-      "returntype" : "bigint"
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  } ],
-  "rowkey" : {
-    "rowkey_columns" : [ {
-      "column" : "seller_id",
-      "length" : 18,
-      "dictionary" : null,
-      "mandatory" : true
-    }, {
-      "column" : "cal_dt",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "leaf_categ_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "meta_categ_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl2_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl3_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "lstg_format_name",
-      "length" : 12,
-      "dictionary" : null,
-      "mandatory" : false
-    }, {
-      "column" : "lstg_site_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "slr_segment_cd",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    } ],
-    "aggregation_groups" : [ [ "leaf_categ_id", "meta_categ_name", "categ_lvl2_name", "categ_lvl3_name", "cal_dt" ] ]
+    {
+      "id": 5,
+      "name": "ITEM_COUNT_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "ITEM_COUNT"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
+    }
+  ],
+  "rowkey": {
+    "rowkey_columns": [
+      {
+        "column": "seller_id",
+        "length": 18,
+        "dictionary": null,
+        "mandatory": true
+      },
+      {
+        "column": "cal_dt",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "leaf_categ_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "meta_categ_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl2_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl3_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "lstg_format_name",
+        "length": 12,
+        "dictionary": null,
+        "mandatory": false
+      },
+      {
+        "column": "lstg_site_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "slr_segment_cd",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      }
+    ],
+    "aggregation_groups": [
+      [
+        "leaf_categ_id",
+        "meta_categ_name",
+        "categ_lvl2_name",
+        "categ_lvl3_name",
+        "cal_dt"
+      ]
+    ]
   },
-  "signature" : "ljba0vaTnt00lU4rdhG9Xw==",
-  "last_modified" : 1422435345352,
-  "model_name" : "test_kylin_with_slr_left_join_model_desc",
-  "null_string" : null,
-  "hbase_mapping" : {
-    "column_family" : [ {
-      "name" : "f1",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "gmv_sum", "gmv_min", "gmv_max", "trans_cnt" ]
-      } ]
-    } ]
+  "signature": "ljba0vaTnt00lU4rdhG9Xw==",
+  "last_modified": 1422435345352,
+  "model_name": "test_kylin_with_slr_left_join_model_desc",
+  "null_string": null,
+  "hbase_mapping": {
+    "column_family": [
+      {
+        "name": "f1",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "gmv_sum",
+              "gmv_min",
+              "gmv_max",
+              "trans_cnt",
+              "item_count_sum"
+            ]
+          }
+        ]
+      }
+    ]
   },
-  "notify_list" : null
+  "notify_list": null
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_desc.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_desc.json b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_desc.json
index cc40bb7..485170b 100644
--- a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_desc.json
+++ b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_desc.json
@@ -1,197 +1,282 @@
 {
-  "uuid" : "9ac9b7a8-3929-4dff-b59d-2100aadc8dbf",
-  "name" : "test_kylin_cube_without_slr_desc",
-  "description" : null,
-  "dimensions" : [ {
-    "id" : 0,
-    "name" : "CAL_DT",
-    "table" : "EDW.TEST_CAL_DT",
-    "column" : null,
-    "derived" : [ "WEEK_BEG_DT" ],
-    "hierarchy" : false
-  }, {
-    "id" : 1,
-    "name" : "CATEGORY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : null,
-    "derived" : [ "USER_DEFINED_FIELD1", "USER_DEFINED_FIELD3", "UPD_DATE", "UPD_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 2,
-    "name" : "CATEGORY_HIERARCHY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : [ "META_CATEG_NAME", "CATEG_LVL2_NAME", "CATEG_LVL3_NAME" ],
-    "derived" : null,
-    "hierarchy" : true
-  }, {
-    "id" : 3,
-    "name" : "LSTG_FORMAT_NAME",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "LSTG_FORMAT_NAME" ],
-    "derived" : null,
-    "hierarchy" : false
-  }, {
-    "id" : 4,
-    "name" : "SITE_ID",
-    "table" : "EDW.TEST_SITES",
-    "column" : null,
-    "derived" : [ "SITE_NAME", "CRE_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 5,
-    "name" : "SELLER_TYPE_CD",
-    "table" : "EDW.TEST_SELLER_TYPE_DIM",
-    "column" : null,
-    "derived" : [ "SELLER_TYPE_DESC" ],
-    "hierarchy" : false
-  } ],
-  "measures" : [ {
-    "id" : 1,
-    "name" : "GMV_SUM",
-    "function" : {
-      "expression" : "SUM",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+  "uuid": "9ac9b7a8-3929-4dff-b59d-2100aadc8dbf",
+  "name": "test_kylin_cube_without_slr_desc",
+  "description": null,
+  "dimensions": [
+    {
+      "id": 0,
+      "name": "CAL_DT",
+      "table": "EDW.TEST_CAL_DT",
+      "column": null,
+      "derived": [
+        "WEEK_BEG_DT"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 2,
-    "name" : "GMV_MIN",
-    "function" : {
-      "expression" : "MIN",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+    {
+      "id": 1,
+      "name": "CATEGORY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": null,
+      "derived": [
+        "USER_DEFINED_FIELD1",
+        "USER_DEFINED_FIELD3",
+        "UPD_DATE",
+        "UPD_USER"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 3,
-    "name" : "GMV_MAX",
-    "function" : {
-      "expression" : "MAX",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+    {
+      "id": 2,
+      "name": "CATEGORY_HIERARCHY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": [
+        "META_CATEG_NAME",
+        "CATEG_LVL2_NAME",
+        "CATEG_LVL3_NAME"
+      ],
+      "derived": null,
+      "hierarchy": true
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 4,
-    "name" : "TRANS_CNT",
-    "function" : {
-      "expression" : "COUNT",
-      "parameter" : {
-        "type" : "constant",
-        "value" : "1"
-      },
-      "returntype" : "bigint"
+    {
+      "id": 3,
+      "name": "LSTG_FORMAT_NAME",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "LSTG_FORMAT_NAME"
+      ],
+      "derived": null,
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 5,
-    "name" : "SELLER_CNT_HLL",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "SELLER_ID"
-      },
-      "returntype" : "hllc(10)"
+    {
+      "id": 4,
+      "name": "SITE_ID",
+      "table": "EDW.TEST_SITES",
+      "column": null,
+      "derived": [
+        "SITE_NAME",
+        "CRE_USER"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 6,
-    "name" : "SELLER_CNT_LONG",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "SELLER_ID"
-      },
-      "returntype" : "bigint"
+    {
+      "id": 5,
+      "name": "SELLER_TYPE_CD",
+      "table": "EDW.TEST_SELLER_TYPE_DIM",
+      "column": null,
+      "derived": [
+        "SELLER_TYPE_DESC"
+      ],
+      "hierarchy": false
+    }
+  ],
+  "measures": [
+    {
+      "id": 1,
+      "name": "GMV_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 2,
+      "name": "GMV_MIN",
+      "function": {
+        "expression": "MIN",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : "SELLER_CNT_HLL"
-  }, {
-    "id" : 7,
-    "name" : "SELLER_FORMAT_CNT",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "LSTG_FORMAT_NAME,SELLER_ID"
-      },
-      "returntype" : "hllc(10)"
+    {
+      "id": 3,
+      "name": "GMV_MAX",
+      "function": {
+        "expression": "MAX",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 4,
+      "name": "TRANS_CNT",
+      "function": {
+        "expression": "COUNT",
+        "parameter": {
+          "type": "constant",
+          "value": "1"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  } ],
-  "rowkey" : {
-    "rowkey_columns" : [ {
-      "column" : "cal_dt",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : true
-    }, {
-      "column" : "leaf_categ_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "meta_categ_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl2_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl3_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "lstg_format_name",
-      "length" : 12,
-      "dictionary" : null,
-      "mandatory" : false
-    }, {
-      "column" : "lstg_site_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "slr_segment_cd",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    } ],
-    "aggregation_groups" : [ [ "lstg_format_name", "lstg_site_id", "slr_segment_cd" ], [ "leaf_categ_id", "meta_categ_name", "categ_lvl3_name", "categ_lvl2_name", "lstg_format_name" ] ]
+    {
+      "id": 5,
+      "name": "ITEM_COUNT_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "ITEM_COUNT"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 6,
+      "name": "SELLER_CNT_HLL",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "SELLER_ID"
+        },
+        "returntype": "hllc(10)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 7,
+      "name": "SELLER_CNT_LONG",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "SELLER_ID"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": "SELLER_CNT_HLL"
+    },
+    {
+      "id": 8,
+      "name": "SELLER_FORMAT_CNT",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "LSTG_FORMAT_NAME,SELLER_ID"
+        },
+        "returntype": "hllc(10)"
+      },
+      "dependent_measure_ref": null
+    }
+  ],
+  "rowkey": {
+    "rowkey_columns": [
+      {
+        "column": "cal_dt",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": true
+      },
+      {
+        "column": "leaf_categ_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "meta_categ_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl2_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl3_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "lstg_format_name",
+        "length": 12,
+        "dictionary": null,
+        "mandatory": false
+      },
+      {
+        "column": "lstg_site_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "slr_segment_cd",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      }
+    ],
+    "aggregation_groups": [
+      [
+        "lstg_format_name",
+        "lstg_site_id",
+        "slr_segment_cd"
+      ],
+      [
+        "leaf_categ_id",
+        "meta_categ_name",
+        "categ_lvl3_name",
+        "categ_lvl2_name",
+        "lstg_format_name"
+      ]
+    ]
   },
-  "signature" : "7qJiv2MEGoGf1AAgksQmZw==",
-  "last_modified" : 1422435345362,
-  "model_name" : "test_kylin_without_slr_model_desc",
-  "null_string" : null,
-  "hbase_mapping" : {
-    "column_family" : [ {
-      "name" : "f1",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "gmv_sum", "gmv_min", "gmv_max", "trans_cnt", "seller_cnt_long" ]
-      } ]
-    }, {
-      "name" : "f2",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "seller_cnt_hll", "seller_format_cnt" ]
-      } ]
-    } ]
+  "signature": "7qJiv2MEGoGf1AAgksQmZw==",
+  "last_modified": 1422435345362,
+  "model_name": "test_kylin_without_slr_model_desc",
+  "null_string": null,
+  "hbase_mapping": {
+    "column_family": [
+      {
+        "name": "f1",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "gmv_sum",
+              "gmv_min",
+              "gmv_max",
+              "trans_cnt",
+              "item_count_sum",
+              "seller_cnt_long"
+            ]
+          }
+        ]
+      },
+      {
+        "name": "f2",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "seller_cnt_hll",
+              "seller_format_cnt"
+            ]
+          }
+        ]
+      }
+    ]
   },
-  "notify_list" : null
+  "notify_list": null
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_left_join_desc.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_left_join_desc.json b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_left_join_desc.json
index d677568..c6bd12f 100644
--- a/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_left_join_desc.json
+++ b/examples/test_case_data/localmeta/cube_desc/test_kylin_cube_without_slr_left_join_desc.json
@@ -1,197 +1,282 @@
 {
-  "uuid" : "9ac9b7a8-3929-4dff-b59d-2100aadc8dbf",
-  "name" : "test_kylin_cube_without_slr_left_join_desc",
-  "description" : null,
-  "dimensions" : [ {
-    "id" : 0,
-    "name" : "CAL_DT",
-    "table" : "EDW.TEST_CAL_DT",
-    "column" : null,
-    "derived" : [ "WEEK_BEG_DT" ],
-    "hierarchy" : false
-  }, {
-    "id" : 1,
-    "name" : "CATEGORY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : null,
-    "derived" : [ "USER_DEFINED_FIELD1", "USER_DEFINED_FIELD3", "UPD_DATE", "UPD_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 2,
-    "name" : "CATEGORY_HIERARCHY",
-    "table" : "DEFAULT.TEST_CATEGORY_GROUPINGS",
-    "column" : [ "META_CATEG_NAME", "CATEG_LVL2_NAME", "CATEG_LVL3_NAME" ],
-    "derived" : null,
-    "hierarchy" : true
-  }, {
-    "id" : 3,
-    "name" : "LSTG_FORMAT_NAME",
-    "table" : "DEFAULT.TEST_KYLIN_FACT",
-    "column" : [ "LSTG_FORMAT_NAME" ],
-    "derived" : null,
-    "hierarchy" : false
-  }, {
-    "id" : 4,
-    "name" : "SITE_ID",
-    "table" : "EDW.TEST_SITES",
-    "column" : null,
-    "derived" : [ "SITE_NAME", "CRE_USER" ],
-    "hierarchy" : false
-  }, {
-    "id" : 5,
-    "name" : "SELLER_TYPE_CD",
-    "table" : "EDW.TEST_SELLER_TYPE_DIM",
-    "column" : null,
-    "derived" : [ "SELLER_TYPE_DESC" ],
-    "hierarchy" : false
-  } ],
-  "measures" : [ {
-    "id" : 1,
-    "name" : "GMV_SUM",
-    "function" : {
-      "expression" : "SUM",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+  "uuid": "9ac9b7a8-3929-4dff-b59d-2100aadc8dbf",
+  "name": "test_kylin_cube_without_slr_left_join_desc",
+  "description": null,
+  "dimensions": [
+    {
+      "id": 0,
+      "name": "CAL_DT",
+      "table": "EDW.TEST_CAL_DT",
+      "column": null,
+      "derived": [
+        "WEEK_BEG_DT"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 2,
-    "name" : "GMV_MIN",
-    "function" : {
-      "expression" : "MIN",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+    {
+      "id": 1,
+      "name": "CATEGORY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": null,
+      "derived": [
+        "USER_DEFINED_FIELD1",
+        "USER_DEFINED_FIELD3",
+        "UPD_DATE",
+        "UPD_USER"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 3,
-    "name" : "GMV_MAX",
-    "function" : {
-      "expression" : "MAX",
-      "parameter" : {
-        "type" : "column",
-        "value" : "PRICE"
-      },
-      "returntype" : "decimal(19,4)"
+    {
+      "id": 2,
+      "name": "CATEGORY_HIERARCHY",
+      "table": "DEFAULT.TEST_CATEGORY_GROUPINGS",
+      "column": [
+        "META_CATEG_NAME",
+        "CATEG_LVL2_NAME",
+        "CATEG_LVL3_NAME"
+      ],
+      "derived": null,
+      "hierarchy": true
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 4,
-    "name" : "TRANS_CNT",
-    "function" : {
-      "expression" : "COUNT",
-      "parameter" : {
-        "type" : "constant",
-        "value" : "1"
-      },
-      "returntype" : "bigint"
+    {
+      "id": 3,
+      "name": "LSTG_FORMAT_NAME",
+      "table": "DEFAULT.TEST_KYLIN_FACT",
+      "column": [
+        "LSTG_FORMAT_NAME"
+      ],
+      "derived": null,
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 5,
-    "name" : "SELLER_CNT_HLL",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "SELLER_ID"
-      },
-      "returntype" : "hllc(10)"
+    {
+      "id": 4,
+      "name": "SITE_ID",
+      "table": "EDW.TEST_SITES",
+      "column": null,
+      "derived": [
+        "SITE_NAME",
+        "CRE_USER"
+      ],
+      "hierarchy": false
     },
-    "dependent_measure_ref" : null
-  }, {
-    "id" : 6,
-    "name" : "SELLER_CNT_LONG",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "SELLER_ID"
-      },
-      "returntype" : "bigint"
+    {
+      "id": 5,
+      "name": "SELLER_TYPE_CD",
+      "table": "EDW.TEST_SELLER_TYPE_DIM",
+      "column": null,
+      "derived": [
+        "SELLER_TYPE_DESC"
+      ],
+      "hierarchy": false
+    }
+  ],
+  "measures": [
+    {
+      "id": 1,
+      "name": "GMV_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 2,
+      "name": "GMV_MIN",
+      "function": {
+        "expression": "MIN",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : "SELLER_CNT_HLL"
-  }, {
-    "id" : 7,
-    "name" : "SELLER_FORMAT_CNT",
-    "function" : {
-      "expression" : "COUNT_DISTINCT",
-      "parameter" : {
-        "type" : "column",
-        "value" : "LSTG_FORMAT_NAME,SELLER_ID"
-      },
-      "returntype" : "hllc(10)"
+    {
+      "id": 3,
+      "name": "GMV_MAX",
+      "function": {
+        "expression": "MAX",
+        "parameter": {
+          "type": "column",
+          "value": "PRICE"
+        },
+        "returntype": "decimal(19,4)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 4,
+      "name": "TRANS_CNT",
+      "function": {
+        "expression": "COUNT",
+        "parameter": {
+          "type": "constant",
+          "value": "1"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
     },
-    "dependent_measure_ref" : null
-  } ],
-  "rowkey" : {
-    "rowkey_columns" : [ {
-      "column" : "cal_dt",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : true
-    }, {
-      "column" : "leaf_categ_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "meta_categ_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl2_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "categ_lvl3_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "lstg_format_name",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "lstg_site_id",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    }, {
-      "column" : "slr_segment_cd",
-      "length" : 0,
-      "dictionary" : "true",
-      "mandatory" : false
-    } ],
-    "aggregation_groups" : [ [ "lstg_format_name", "lstg_site_id", "slr_segment_cd" ], [ "leaf_categ_id", "meta_categ_name", "categ_lvl3_name", "categ_lvl2_name", "lstg_format_name" ] ]
+    {
+      "id": 5,
+      "name": "ITEM_COUNT_SUM",
+      "function": {
+        "expression": "SUM",
+        "parameter": {
+          "type": "column",
+          "value": "ITEM_COUNT"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 6,
+      "name": "SELLER_CNT_HLL",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "SELLER_ID"
+        },
+        "returntype": "hllc(10)"
+      },
+      "dependent_measure_ref": null
+    },
+    {
+      "id": 7,
+      "name": "SELLER_CNT_LONG",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "SELLER_ID"
+        },
+        "returntype": "bigint"
+      },
+      "dependent_measure_ref": "SELLER_CNT_HLL"
+    },
+    {
+      "id": 8,
+      "name": "SELLER_FORMAT_CNT",
+      "function": {
+        "expression": "COUNT_DISTINCT",
+        "parameter": {
+          "type": "column",
+          "value": "LSTG_FORMAT_NAME,SELLER_ID"
+        },
+        "returntype": "hllc(10)"
+      },
+      "dependent_measure_ref": null
+    }
+  ],
+  "rowkey": {
+    "rowkey_columns": [
+      {
+        "column": "cal_dt",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": true
+      },
+      {
+        "column": "leaf_categ_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "meta_categ_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl2_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "categ_lvl3_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "lstg_format_name",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "lstg_site_id",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      },
+      {
+        "column": "slr_segment_cd",
+        "length": 0,
+        "dictionary": "true",
+        "mandatory": false
+      }
+    ],
+    "aggregation_groups": [
+      [
+        "lstg_format_name",
+        "lstg_site_id",
+        "slr_segment_cd"
+      ],
+      [
+        "leaf_categ_id",
+        "meta_categ_name",
+        "categ_lvl3_name",
+        "categ_lvl2_name",
+        "lstg_format_name"
+      ]
+    ]
   },
-  "signature" : "TPdd/nnYLZnsI8TtZzoCng==",
-  "last_modified" : 1422435345373,
-  "model_name" : "test_kylin_without_slr_left_join_model_desc",
-  "null_string" : null,
-  "hbase_mapping" : {
-    "column_family" : [ {
-      "name" : "f1",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "gmv_sum", "gmv_min", "gmv_max", "trans_cnt", "seller_cnt_long" ]
-      } ]
-    }, {
-      "name" : "f2",
-      "columns" : [ {
-        "qualifier" : "m",
-        "measure_refs" : [ "seller_cnt_hll", "seller_format_cnt" ]
-      } ]
-    } ]
+  "signature": "TPdd/nnYLZnsI8TtZzoCng==",
+  "last_modified": 1422435345373,
+  "model_name": "test_kylin_without_slr_left_join_model_desc",
+  "null_string": null,
+  "hbase_mapping": {
+    "column_family": [
+      {
+        "name": "f1",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "gmv_sum",
+              "gmv_min",
+              "gmv_max",
+              "trans_cnt",
+              "item_count_sum",
+              "seller_cnt_long"
+            ]
+          }
+        ]
+      },
+      {
+        "name": "f2",
+        "columns": [
+          {
+            "qualifier": "m",
+            "measure_refs": [
+              "seller_cnt_hll",
+              "seller_format_cnt"
+            ]
+          }
+        ]
+      }
+    ]
   },
-  "notify_list" : null
+  "notify_list": null
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/data/data_gen_config.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/data/data_gen_config.json b/examples/test_case_data/localmeta/data/data_gen_config.json
index a19aeae..6120ead 100644
--- a/examples/test_case_data/localmeta/data/data_gen_config.json
+++ b/examples/test_case_data/localmeta/data/data_gen_config.json
@@ -1,29 +1,31 @@
 {
-"columnConfigs":
-[
+  "columnConfigs": [
     {
-        "columnName" : "lstg_format_name",
-        "valueSet"   : 
-            [
-                "FP-GTC",
-                "FP-non GTC",
-                "ABIN",
-                "Auction",
-                "Others"
-            ],
-        "exclusive":true
+      "columnName": "lstg_format_name",
+      "valueSet": [
+        "FP-GTC",
+        "FP-non GTC",
+        "ABIN",
+        "Auction",
+        "Others"
+      ],
+      "exclusive": true
     },
-    
     {
-        "columnName" : "SELLER_ID",
-        "valueSet"   : 
-            [
-                "10000000" ,
-                "10001000"
-            ],
-        "asRange":true
+      "columnName": "SELLER_ID",
+      "valueSet": [
+        "10000000",
+        "10001000"
+      ],
+      "asRange": true
+    },
+    {
+      "columnName": "ITEM_COUNT",
+      "valueSet": [
+        "1000000",
+        "2000000"
+      ],
+      "asRange": true
     }
-]
-
-
+  ]
 }

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/examples/test_case_data/localmeta/table/DEFAULT.TEST_KYLIN_FACT.json
----------------------------------------------------------------------
diff --git a/examples/test_case_data/localmeta/table/DEFAULT.TEST_KYLIN_FACT.json b/examples/test_case_data/localmeta/table/DEFAULT.TEST_KYLIN_FACT.json
index a62a576..c0dff16 100644
--- a/examples/test_case_data/localmeta/table/DEFAULT.TEST_KYLIN_FACT.json
+++ b/examples/test_case_data/localmeta/table/DEFAULT.TEST_KYLIN_FACT.json
@@ -32,7 +32,7 @@
   }, {
     "id" : "8",
     "name" : "ITEM_COUNT",
-    "datatype" : "bigint"
+    "datatype" : "int"
   }, {
     "id" : "9",
     "name" : "SELLER_ID",

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9032eff9/job/src/test/java/org/apache/kylin/job/DataGenTest.java
----------------------------------------------------------------------
diff --git a/job/src/test/java/org/apache/kylin/job/DataGenTest.java b/job/src/test/java/org/apache/kylin/job/DataGenTest.java
index 264e9e6..c8a9915 100644
--- a/job/src/test/java/org/apache/kylin/job/DataGenTest.java
+++ b/job/src/test/java/org/apache/kylin/job/DataGenTest.java
@@ -28,7 +28,6 @@ import org.junit.Before;
 import org.junit.Test;
 
 /**
- * Created by honma on 6/19/14.
  */
 public class DataGenTest extends LocalFileMetadataTestCase {