You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/04/03 05:39:59 UTC
[06/12] incubator-kylin git commit: Change sample fact tables’ CAL_DT column name to PART_DT
Change sample fact tables’ CAL_DT column name to PART_DT
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/c0cbf98a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/c0cbf98a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/c0cbf98a
Branch: refs/heads/staging
Commit: c0cbf98a7489f9dea6a0e0bc029340d0629191ba
Parents: 4b0bd7d
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Thu Apr 2 17:55:28 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Thu Apr 2 17:55:28 2015 +0800
----------------------------------------------------------------------
examples/sample_cube/create_sample_tables.sql | 2 +-
examples/sample_cube/metadata/model_desc/kylin_sales_model.json | 4 ++--
examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c0cbf98a/examples/sample_cube/create_sample_tables.sql
----------------------------------------------------------------------
diff --git a/examples/sample_cube/create_sample_tables.sql b/examples/sample_cube/create_sample_tables.sql
index b49b16f..ad6f3d6 100644
--- a/examples/sample_cube/create_sample_tables.sql
+++ b/examples/sample_cube/create_sample_tables.sql
@@ -155,7 +155,7 @@ DROP TABLE IF EXISTS DEFAULT.KYLIN_SALES;
CREATE TABLE DEFAULT.KYLIN_SALES
(
TRANS_ID bigint
-,CAL_DT date
+,PART_DT date
,LSTG_FORMAT_NAME string
,LEAF_CATEG_ID bigint
,LSTG_SITE_ID int
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c0cbf98a/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/model_desc/kylin_sales_model.json b/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
index bdefd3e..157a036 100644
--- a/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
+++ b/examples/sample_cube/metadata/model_desc/kylin_sales_model.json
@@ -6,7 +6,7 @@
"join" : {
"type" : "inner",
"primary_key" : [ "CAL_DT" ],
- "foreign_key" : [ "CAL_DT" ]
+ "foreign_key" : [ "PART_DT" ]
}
}, {
"table" : "DEFAULT.KYLIN_CATEGORY_GROUPINGS",
@@ -21,7 +21,7 @@
"fact_table" : "DEFAULT.KYLIN_SALES",
"filter_condition" : null,
"partition_desc" : {
- "partition_date_column" : "DEFAULT.KYLIN_SALES.CAL_DT",
+ "partition_date_column" : "DEFAULT.KYLIN_SALES.PART_DT",
"partition_date_start" : 0,
"partition_type" : "APPEND"
}
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/c0cbf98a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
index 33a8807..be7cde5 100644
--- a/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
+++ b/examples/sample_cube/metadata/table/DEFAULT.KYLIN_SALES.json
@@ -7,7 +7,7 @@
"datatype" : "bigint"
}, {
"id" : "2",
- "name" : "CAL_DT",
+ "name" : "PART_DT",
"datatype" : "date"
}, {
"id" : "3",