From issues-return-21807-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Tue Nov 20 03:59:14 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 16922180671 for ; Tue, 20 Nov 2018 03:59:13 +0100 (CET) Received: (qmail 97268 invoked by uid 500); 20 Nov 2018 02:59:13 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 97259 invoked by uid 99); 20 Nov 2018 02:59:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2018 02:59:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AC0BA18123D for ; Tue, 20 Nov 2018 02:59:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id F-h3xi4rZKJs for ; Tue, 20 Nov 2018 02:59:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7A40B5F478 for ; Tue, 20 Nov 2018 02:50:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3DBE8E2613 for ; Tue, 20 Nov 2018 02:50:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 64E3E21E7F for ; Tue, 20 Nov 2018 02:50:00 +0000 (UTC) Date: Tue, 20 Nov 2018 02:50:00 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KYLIN-3689) When the startTime is equal to the endTime in build request, the segment will build all data. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-3689?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1669= 2577#comment-16692577 ]=20 ASF subversion and git services commented on KYLIN-3689: -------------------------------------------------------- Commit 02f19f200be95e0da3e146386f31fe0633e3f6b8 in kylin's branch refs/head= s/2.5.x from shaofengshi [ https://gitbox.apache.org/repos/asf?p=3Dkylin.git;h=3D02f19f2 ] KYLIN-3689 fix UT > When the startTime is equal to the endTime in build request, the segment = will build all data. > -------------------------------------------------------------------------= -------------------- > > Key: KYLIN-3689 > URL: https://issues.apache.org/jira/browse/KYLIN-3689 > Project: Kylin > Issue Type: Bug > Components: Job Engine, Metadata, Query Engine > Affects Versions: v2.4.0, v2.5.0 > Reporter: Hongtao He > Assignee: Shaofeng SHI > Priority: Major > Fix For: v2.5.2 > > Attachments: 0001-fix-bug-When-the-startTime-is-equal-to-the-endT= ime-i.patch > > > Hi all: > =C2=A0 We=C2=A0 know that kylin's build job often runs late at night, so = calling kylin's restful API directly is a very common thing.=C2=A0In this s= cenario, if=C2=A0 the startTime is equal to the endTime,=C2=A0 something un= expected will happen. The=C2=A0 job calculates all partition data, so the q= uery result is wrong. > =C2=A0 For=C2=A0example, when I send the following request to kylin. > curl -X PUT -H "Authorization: Basic XXXXXXX" -H 'Content-Type: applicati= on/json' -d '\{"startTime":'1541894400000', "endTime":'1541894400000', "bui= ldType":"BUILD"}' [http://xxxxxx:xxxx/kylin/api/cubes/cube_name/build|http:= //xxxxxxxxxx/] > then, the job will=C2=A0calculate=C2=A0all partition data. I find=C2=A0th= e backend interface of build lacks checksum data range, and the sql of gene= rating the flat table is wrong.=C2=A0 > =C2=A0 I try to fix this bug, and the patch=C2=A0=C2=A0is in the attachme= nt. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)