[ 
https://issues.apache.org/jira/browse/KYLIN-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifei Wu updated KYLIN-2945:
----------------------------
    Description: 
Absolute path is used in global dictionary, which may cause the dict cannot be 
found when configuration changed or migration.
```
{
  "uuid" : "b82505d8-5b40-4009-8839-8456500ea6a8",
  "last_modified" : 0,
  "version" : "2.3.0.20500",
  "source_table" : "KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES",
  "source_column" : "PRICE",
  "source_column_index" : 6,
  "data_type" : "decimal(19,4)",
  "input" : {
    "path" : 
"hdfs://sandbox.hortonworks.com:8020/kylin/kylin_yifei_1011_testGlobalDictMigration/kylin-d213a963-b5e3-4e75-a1a2-8af93ca83a80/global_dict_cube/fact_distinct_columns/KYLIN_SALES.PRICE",
    "size" : 81150,
    "last_modified_time" : 1508133611074
  },
  "dictionary_class" : "org.apache.kylin.dict.AppendTrieDictionary",
  "cardinality" : 8878
}^@Uresources/GlobalDict/dict/KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES/PRICE/
```


  was:
Absolute path is used in global dictionary, which may cause the dict cannot be 
found when configuration changed or migration.
...
{
  "uuid" : "b82505d8-5b40-4009-8839-8456500ea6a8",
  "last_modified" : 0,
  "version" : "2.3.0.20500",
  "source_table" : "KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES",
  "source_column" : "PRICE",
  "source_column_index" : 6,
  "data_type" : "decimal(19,4)",
  "input" : {
    "path" : 
"hdfs://sandbox.hortonworks.com:8020/kylin/kylin_yifei_1011_testGlobalDictMigration/kylin-d213a963-b5e3-4e75-a1a2-8af93ca83a80/global_dict_cube/fact_distinct_columns/KYLIN_SALES.PRICE",
    "size" : 81150,
    "last_modified_time" : 1508133611074
  },
  "dictionary_class" : "org.apache.kylin.dict.AppendTrieDictionary",
  "cardinality" : 8878
}^@Uresources/GlobalDict/dict/KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES/PRICE/
...



> global dict specific info use absolute path when saved it
> ---------------------------------------------------------
>
>                 Key: KYLIN-2945
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2945
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: Yifei Wu
>
> Absolute path is used in global dictionary, which may cause the dict cannot 
> be found when configuration changed or migration.
> ```
> {
>   "uuid" : "b82505d8-5b40-4009-8839-8456500ea6a8",
>   "last_modified" : 0,
>   "version" : "2.3.0.20500",
>   "source_table" : "KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES",
>   "source_column" : "PRICE",
>   "source_column_index" : 6,
>   "data_type" : "decimal(19,4)",
>   "input" : {
>     "path" : 
> "hdfs://sandbox.hortonworks.com:8020/kylin/kylin_yifei_1011_testGlobalDictMigration/kylin-d213a963-b5e3-4e75-a1a2-8af93ca83a80/global_dict_cube/fact_distinct_columns/KYLIN_SALES.PRICE",
>     "size" : 81150,
>     "last_modified_time" : 1508133611074
>   },
>   "dictionary_class" : "org.apache.kylin.dict.AppendTrieDictionary",
>   "cardinality" : 8878
> }^@Uresources/GlobalDict/dict/KYLIN_YIFEI_1011_TESTGLOBALDICTMIGRATION.KYLIN_SALES/PRICE/
> ```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to