[
https://issues.apache.org/jira/browse/KYLIN-5625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743744#comment-17743744
]
ASF subversion and git services commented on KYLIN-5625:
--------------------------------------------------------
Commit 06884f6c931b4e76fa417f656f1b43b7622d934a in kylin's branch
refs/heads/kylin5 from Qian Xia
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=06884f6c93 ]
KYLIN-5625 fix table index shard by issue
> Edit the custom table index, delete the ShardBy column, and build the index
> failed
> ----------------------------------------------------------------------------------
>
> Key: KYLIN-5625
> URL: https://issues.apache.org/jira/browse/KYLIN-5625
> Project: Kylin
> Issue Type: Bug
> Reporter: Laura Xia
> Assignee: Laura Xia
> Priority: Major
> Fix For: 5.0-beta
>
>
> 在后端处理手动添加明细索引请求的时候,没有检测是否 {{shard_by_columns}} 列 一定要在 {{col_order}}
> 字段中,所以添加新索引的时候是可能发生丢失 col_order
> 的情况的,这是不符合预期的,构建时也会发生错误,本地测试了下如下请求可以请求成功,但实际存储了错误的元数据
> {{curl -X POST \ http://10.1.2.168:7068/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"}'}}
> 查看了前端,前端也有 bug,当勾选某个列,选择为 shard by 列,然后点击取消勾选,然后发送请求,col_order
> 中没有加上这个列,shard_by_columns 加上了这个列,就变成了和上述请求 api 同样的效果
--
This message was sent by Atlassian Jira
(v8.20.10#820010)