kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liyang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-2991) Query hit NumberFormatException if partitionDateFormat is not yyyy-MM-dd
Date Sun, 31 Dec 2017 22:50:00 GMT

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

liyang commented on KYLIN-2991:
-------------------------------

Code merge done.
https://github.com/apache/kylin/commit/4d50b26972bb7bbaff852172990e0f189f987673

> Query hit NumberFormatException if partitionDateFormat is not yyyy-MM-dd
> ------------------------------------------------------------------------
>
>                 Key: KYLIN-2991
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2991
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: v2.2.0
>            Reporter: liyang
>            Assignee: liyang
>             Fix For: v2.3.0
>
>
> For example, partition date column is {{MONTH_ID}}, partition date format is {{yyyyMMdd}},
query can hit following exception:
> {Code}
> Caused by: java.lang.NumberFormatException: For input string: "2016-01-01"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Long.parseLong(Long.java:589)
> at java.lang.Long.parseLong(Long.java:631)
> at org.apache.kylin.dimension.IntegerDimEnc.encode(IntegerDimEnc.java:99)
> at org.apache.kylin.dimension.IntegerDimEnc$IntegerSerializer.serialize(IntegerDimEnc.java:153)
> at org.apache.kylin.cube.gridtable.CubeCodeSystem.encodeColumnValue(CubeCodeSystem.java:135)
> at org.apache.kylin.cube.gridtable.SegmentGTStartAndEnd.encodeTime(SegmentGTStartAndEnd.java:86)
> at org.apache.kylin.cube.gridtable.SegmentGTStartAndEnd.getSegmentStartAndEnd(SegmentGTStartAndEnd.java:51)
> at org.apache.kylin.storage.gtrecord.CubeScanRangePlanner.(CubeScanRangePlanner.java:114)
> at org.apache.kylin.storage.gtrecord.CubeSegmentScanner.(CubeSegmentScanner.java:73)
> at org.apache.kylin.storage.gtrecord.GTC
> {Code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message