You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "huangsheng (Jira)" <ji...@apache.org> on 2023/07/03 11:55:00 UTC
[jira] [Commented] (KYLIN-5608) [Aggregation Group API] Calling the newly added index of the aggregation group API, the order of dimensions displayed on the page is inconsistent with the order passed in by the api
[ https://issues.apache.org/jira/browse/KYLIN-5608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739596#comment-17739596 ]
huangsheng commented on KYLIN-5608:
-----------------------------------
h1. Root Cause
Because the dimension order will affect the generated index, it is necessary to ensure that the dimension order stored in the metadata database is consistent with the dimension order entered by the user calling the API. Currently, when parsing the dimension name -> dimension id, the TreeSet is used to save the dimension name, so the collection will be iterated according to the natural order instead of the incoming order.
h1. Fix design
change TreeSet to LinkedHashSet.
> [Aggregation Group API] Calling the newly added index of the aggregation group API, the order of dimensions displayed on the page is inconsistent with the order passed in by the api
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KYLIN-5608
> URL: https://issues.apache.org/jira/browse/KYLIN-5608
> Project: Kylin
> Issue Type: Bug
> Components: REST Service
> Affects Versions: 5.0-alpha
> Reporter: huangsheng
> Assignee: huangsheng
> Priority: Major
> Fix For: 5.0-alpha
>
>
> [Aggregation Group API] Calling the newly added index of the aggregation group API, the order of dimensions displayed on the page is inconsistent with the order passed in by the api
--
This message was sent by Atlassian Jira
(v8.20.10#820010)