You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Zhenning Zhang (Jira)" <ji...@apache.org> on 2023/01/09 03:26:00 UTC

[jira] [Updated] (KYLIN-5388) Add a rest api to support to update database name and table name without rebuilding data

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

Zhenning Zhang updated KYLIN-5388:
----------------------------------
    Description: 
1) add root table alias for model in kylin5.0

2) add a table mapping updater

3) add a api for table name update request

    here is an example:
curl -kXPOST 'http://localhost:7070/kylin/api/tables/default/update' \-H 'Authorization: Basic XXXXXX' \
-H 'Content-Type: application/json' \
-d '{     "mapping":{      "DEFAULT.KYLIN_SALES": {         "database": "TEST",         "tableName": "KYLIN_FACT"      },      "DEFAULT.KYLIN_CAL_DT": {         "tableName": "CAL_DT"      },      "DEFAULT.KYLIN_CATEGORY_GROUPINGS": {         "database": "TEST"      }
   },   "isUseExisting":true}'
4) add UT and json files for test.

  was:
1) add root table alias for model in kylin5.0

2) add a table mapping updater

3) add a api for table name update request

4) add UT and json files for test.


> Add a rest api to support to update database name and table name without rebuilding data
> ----------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5388
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5388
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Metadata
>    Affects Versions: 5.0-alpha
>            Reporter: Zhenning Zhang
>            Assignee: Zhenning Zhang
>            Priority: Major
>             Fix For: 5.0-alpha
>
>
> 1) add root table alias for model in kylin5.0
> 2) add a table mapping updater
> 3) add a api for table name update request
>     here is an example:
> curl -kXPOST 'http://localhost:7070/kylin/api/tables/default/update' \-H 'Authorization: Basic XXXXXX' \
> -H 'Content-Type: application/json' \
> -d '{     "mapping":{      "DEFAULT.KYLIN_SALES": {         "database": "TEST",         "tableName": "KYLIN_FACT"      },      "DEFAULT.KYLIN_CAL_DT": {         "tableName": "CAL_DT"      },      "DEFAULT.KYLIN_CATEGORY_GROUPINGS": {         "database": "TEST"      }
>    },   "isUseExisting":true}'
> 4) add UT and json files for test.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)