Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5388

Add a rest api to support to update database name and table name without rebuilding data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0-alpha
    • None
    • Metadata
    • None

    Description

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

      2) add a table mapping updater

      influenced metadata:

           - table
               - database name
               - table name
           - model
               - root fact table
               - join table
               - computed column 
           - dataflow
               - segments
                   - snapshot
                   - column source bytes

       

      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.

      Attachments

        Activity

          People

            zznlime Zhenning Zhang
            zznlime Zhenning Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: