You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "liyang (JIRA)" <ji...@apache.org> on 2017/11/03 03:00:00 UTC

[jira] [Created] (KYLIN-2991) Query hit NumberFormatException if partitionDateFormat is like yyyyMMdd

liyang created KYLIN-2991:
-----------------------------

             Summary: Query hit NumberFormatException if partitionDateFormat is like yyyyMMdd
                 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
            Priority: Major


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)