[
https://issues.apache.org/jira/browse/KYLIN-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15253222#comment-15253222
]
hongbin ma commented on KYLIN-1313:
-----------------------------------
hi [[email protected]]
thanks for asking. Currently if we the derived columns have different values
given that they share the same deriving value, a warning will be
printed.https://github.com/apache/kylin/blob/master/core-metadata/src/main/java/org/apache/kylin/measure/extendedcolumn/ExtendedColumnMeasureType.java#L241.
We did not further deal with it because:
1. It's not Kylin's job to do ETL. Even if mistakes exist for the "Coke/Coca
Cola" case, I think they actually means the same thing (This is guaranteed by
the fact that their itemID are same) And since the Item Name is only for
displaying (remember we don't allow filter on the ITEMNAME column because it's
a extended dimension), I guess there's no too much difference in Coke or Coca
Cola
2. If we put a strict check on the uniqueness of derived value(like Item Name),
it might be too much cleaning job for the user before he can build the cube
successfully. So we chose to just give a warning. (Even if it might easily got
overseen) Will a toggle to switch between warning/throwing exception make sense
to you?
please let me know how you think
> Enable deriving dimensions on non PK/FK
> ---------------------------------------
>
> Key: KYLIN-1313
> URL: https://issues.apache.org/jira/browse/KYLIN-1313
> Project: Kylin
> Issue Type: Improvement
> Reporter: hongbin ma
> Assignee: hongbin ma
> Fix For: v1.5.2
>
>
> currently derived column has to be columns on look table, and the derived
> host column has to be PK/FK(It's also a problem when the lookup table grows
> every large). Sometimes columns on the fact exhibit deriving relationship
> too. Here's an example fact table:
> (dt date, seller_id bigint, seller_name varchar(100) , item_id bigint,
> item_url varchar(1000), count decimal, price decimal)
> seller_name is uniquely determined by each seller id, and item_url is
> uniquely determined by each item_id. The users does not expect to do
> filtering on columns like seller name or item_url, they just want to retrieve
> it when they do grouping/filtering on other dimensions like selller id, item
> id or even other dimensions like dt.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)