You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Xiaoxiang Yu (Jira)" <ji...@apache.org> on 2023/03/29 07:12: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 ]

Xiaoxiang Yu updated KYLIN-5388:
--------------------------------
    Fix Version/s: 5.0-beta
                       (was: 5.0-alpha)

> 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-beta
>
>
> 1) add root table alias for model in kylin5.0
> 2) add a table mapping updater
> influenced metadata:
> {code:java}
>      - table
>          - database name
>          - table name
>      - model
>          - root fact table
>          - join table
>          - computed column 
>      - dataflow
>          - segments
>              - snapshot
>              - column source bytes{code}
>  
> 3) add a api for table name update request
>     here is an example:
> {code:java}
> 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}'
> {code}
> 4) add UT and json files for test.



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