You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Chao Long (JIRA)" <ji...@apache.org> on 2018/09/24 09:10:00 UTC

[jira] [Commented] (KYLIN-3583) Integer multiplication is performed where Long result is expected

    [ https://issues.apache.org/jira/browse/KYLIN-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16625561#comment-16625561 ] 

Chao Long commented on KYLIN-3583:
----------------------------------

I would like to fix this issue.

> Integer multiplication is performed where Long result is expected
> -----------------------------------------------------------------
>
>                 Key: KYLIN-3583
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3583
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> In RecordEventTimeDetail :
> {code}
>         long timeStampForWeekBegin = timeStamp;
>         timeStampForWeekBegin -= 3600000 * 24 * (calendar.get(Calendar.DAY_OF_WEEK) - 1);
> {code}
> Casting to long should be done first before multiplication.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)