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

If shardBy columns are not included in the index col orders, building the index will fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0-alpha
    • 5.0-alpha
    • Modeling
    • None

    Description

      Using API to update index plan, if the shard_by_columns are not included in the index col_order, the index plan can be saved in the metadata which causes error while building the index.

      The error can be reproduced by using api as following:

       

      curl -X POST \
      http://host:port/kylin/api/index_plans/table_index \ 
       -H 'accept: application/vnd.apache.kylin-v4+json' \ 
       -H 'accept-language: en' \ 
       -H 'authorization: Basic QURNSU46S1lMSU4=' \ 
       -H 'cache-control: no-cache' \ 
       -H 'content-type: application/json' \ 
       -H 'postman-token: fb63f31f-d8d2-b728-3f3b-553e38b02cb2' \ 
       -d '{"id":"","col_order":["TF_FACTS_LEADS_DAY.NEW_INTENTIONS"],"sort_by_columns":[], \ 
       "shard_by_columns":["TF_FACTS_LEADS_DAY.NEW_LEADS"],"load_data":false,"index_range":"EMPTY","project":"SFM","model_id":"290c552c-c38f-ea8f-8c18-e7850d7419cc"}'

       

      Attachments

        Activity

          People

            dorriszhang Ruixuan Zhang
            dorriszhang Ruixuan Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: