You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "zhou degao (JIRA)" <ji...@apache.org> on 2016/12/08 01:38:58 UTC
[jira] [Commented] (KYLIN-2253) sql union did not remove
duplicated records (distinct)
[ https://issues.apache.org/jira/browse/KYLIN-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15730754#comment-15730754 ]
zhou degao commented on KYLIN-2253:
-----------------------------------
I got another finding:
in kylin 1.6 if i run SELECT * FROM lookup_time_by_day where the_date='2040-12-31' union all SELECT * FROM lookup_time_by_day where the_date='2040-12-31'
I got:
2040 12/31/2040 12 31 1 Q4 h2
2040 12/31/2040 12 31 1 Q4 h2
in kylin 1.5.2 if i run the same query
I got:
2040 12/31/2040 12 31 1 Q4 h2
which is what we want i think.
> sql union did not remove duplicated records (distinct)
> -------------------------------------------------------
>
> Key: KYLIN-2253
> URL: https://issues.apache.org/jira/browse/KYLIN-2253
> Project: Kylin
> Issue Type: Bug
> Components: Driver - JDBC
> Affects Versions: v1.5.4.1
> Environment: apache-kylin-1.6.0-hbase1.x-bin.tar.gz
> Reporter: zhou degao
> Priority: Critical
>
> sql like following:
> select "LOOKUP_TIME_BY_DAY"."THE_YEAR" as "c0", "LOOKUP_TIME_BY_DAY"."MONTH_OF_YEAR" as "c1" from "VCGBI_FACT_SALE" as "VCGBI_FACT_SALE" join "LOOKUP_TIME_BY_DAY" as "LOOKUP_TIME_BY_DAY" on "VCGBI_FACT_SALE"."DEAL_TIME" = "LOOKUP_TIME_BY_DAY"."THE_DATE" group by "LOOKUP_TIME_BY_DAY"."THE_YEAR", "LOOKUP_TIME_BY_DAY"."MONTH_OF_YEAR"
> union
> select "LOOKUP_TIME_BY_DAY"."THE_YEAR" as "c0", "LOOKUP_TIME_BY_DAY"."MONTH_OF_YEAR" as "c1" from "VCGBI_FACT_PERSON_MISC_DATA" as "VCGBI_FACT_PERSON_MISC_DATA" join "LOOKUP_TIME_BY_DAY" as "LOOKUP_TIME_BY_DAY" on "VCGBI_FACT_PERSON_MISC_DATA"."TIME" = "LOOKUP_TIME_BY_DAY"."THE_DATE" group by "LOOKUP_TIME_BY_DAY"."THE_YEAR", "LOOKUP_TIME_BY_DAY"."MONTH_OF_YEAR" order by 1 ASC, 2 ASC
> I got result like following:
> 2016 1
> 2016 1
> 2016 2
> 2016 2
> 2016 3
> 2016 3
> 2016 4
> 2016 4
> 2016 5
> 2016 5
> 2016 6
> 2016 6
> 2016 7
> 2016 7
> 2016 8
> 2016 8
> 2016 9
> 2016 9
> 2016 10
> 2016 11
> 2016 12
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)